Merge branch 'master' of https://github.com/Anuken/Mindustry into crafting-rework

# Conflicts:
#	core/src/io/anuke/mindustry/content/Recipes.java
This commit is contained in:
Anuken
2019-01-06 09:45:11 -05:00
6 changed files with 31 additions and 27 deletions

View File

@@ -71,7 +71,7 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
}
/**Sets this tile entity data to this tile, and adds it if necessary.*/
public TileEntity init(Tile tile, boolean added){
public TileEntity init(Tile tile, boolean shouldAdd){
this.tile = tile;
x = tile.drawx();
y = tile.drawy();
@@ -80,7 +80,7 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
timer = new Interval(tile.block().timers);
if(added){
if(shouldAdd){
add();
}