mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Fixed editor placing blocks at 0 health
This commit is contained in:
@ -367,7 +367,7 @@ category.general = General
|
||||
category.power = Power
|
||||
category.liquids = Liquids
|
||||
category.items = Items
|
||||
category.crafting = Crafting
|
||||
category.crafting = Input/Output
|
||||
category.shooting = Shooting
|
||||
category.optional = Optional Enhancements
|
||||
setting.animatedwater.name = Animated Water
|
||||
|
@ -92,6 +92,7 @@ public class EditorTile extends Tile{
|
||||
|
||||
if(block.hasEntity()){
|
||||
entity = block.newEntity();
|
||||
entity.health = block.health;
|
||||
entity.cons = new ConsumeModule(entity);
|
||||
if(block.hasItems) entity.items = new ItemModule();
|
||||
if(block.hasLiquids) entity.liquids = new LiquidModule();
|
||||
|
@ -3,7 +3,6 @@ package io.anuke.mindustry.editor;
|
||||
import io.anuke.arc.collection.ObjectMap;
|
||||
import io.anuke.arc.files.FileHandle;
|
||||
import io.anuke.arc.math.Mathf;
|
||||
import io.anuke.arc.util.Log;
|
||||
import io.anuke.arc.util.Pack;
|
||||
import io.anuke.arc.util.Structs;
|
||||
import io.anuke.mindustry.content.Blocks;
|
||||
@ -210,7 +209,6 @@ public class MapEditor{
|
||||
|
||||
if(!isfloor){
|
||||
byte link = tile.getLinkByte();
|
||||
Log.info("Remove linkd: " + tiles[x][y]);
|
||||
|
||||
if(tile.block().isMultiblock()){
|
||||
removeLinked(wx, wy);
|
||||
|
Reference in New Issue
Block a user