Bugfixes for GWT
This commit is contained in:
@@ -137,7 +137,7 @@ public class Mechs implements ContentList{
|
||||
boostSpeed = 0.8f;
|
||||
weapon = Weapons.healBlaster;
|
||||
maxSpeed = 5f;
|
||||
armor = 20f;
|
||||
armor = 15f;
|
||||
altChargeAlpha = 0.05f;
|
||||
trailColorTo = Palette.heal;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import io.anuke.mindustry.graphics.Palette;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.mindustry.type.Item;
|
||||
import io.anuke.mindustry.type.ItemStack;
|
||||
import io.anuke.mindustry.type.ItemType;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
import io.anuke.mindustry.world.blocks.BuildBlock;
|
||||
import io.anuke.mindustry.world.blocks.BuildBlock.BuildEntity;
|
||||
@@ -220,6 +221,12 @@ public class Drone extends FlyingUnit implements BuilderTrait{
|
||||
return;
|
||||
}
|
||||
|
||||
if(inventory.getItem().item.type != ItemType.material){
|
||||
inventory.clearItem();
|
||||
setState(mine);
|
||||
return;
|
||||
}
|
||||
|
||||
target = getClosestCore();
|
||||
|
||||
if(target == null) return;
|
||||
|
||||
Reference in New Issue
Block a user