mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 20:33:50 +07:00
Crash fix
This commit is contained in:
parent
0b175cb25d
commit
2dee221861
@ -46,7 +46,7 @@ task deploy(type: Copy){
|
||||
|
||||
from "build/outputs/apk/release/android-release.apk"
|
||||
into "../deploy/"
|
||||
rename ("android-google-release.apk", appName + "-android-" + getVersionString() + ".apk")
|
||||
rename ("android-release.apk", appName + "-android-" + getVersionString() + ".apk")
|
||||
}
|
||||
|
||||
android {
|
||||
|
@ -213,8 +213,8 @@ public interface BuilderTrait extends Entity, TeamTrait{
|
||||
|
||||
TileEntity core = unit.getClosestCore();
|
||||
|
||||
//if there is no core to build with, stop building!
|
||||
if(core == null){
|
||||
//if there is no core to build with or no build entity, stop building!
|
||||
if(core == null || !(tile.entity instanceof BuildEntity)){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,9 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
|
||||
|
||||
if(health <= 0){
|
||||
onDeath();
|
||||
return; //no need to update anymore
|
||||
}
|
||||
|
||||
Block previous = block;
|
||||
block.update(tile);
|
||||
if(block == previous && cons != null){
|
||||
|
@ -199,7 +199,6 @@ public class Conveyor extends Block{
|
||||
|
||||
@Override
|
||||
public void update(Tile tile){
|
||||
|
||||
ConveyorEntity entity = tile.entity();
|
||||
entity.minitem = 1f;
|
||||
Tile next = tile.getNearby(tile.getRotation());
|
||||
|
Loading…
Reference in New Issue
Block a user