Read-only component fields / Removed get/set prefix
This commit is contained in:
@@ -141,9 +141,9 @@ public class EditorTile extends Tile{
|
||||
if(block.hasEntity()){
|
||||
entity = block.newEntity().init(this, false);
|
||||
entity.cons = new ConsumeModule(entity);
|
||||
if(block.hasItems) entity.getItems() = new ItemModule();
|
||||
if(block.hasLiquids) entity.getLiquids() = new LiquidModule();
|
||||
if(block.hasPower) entity.getPower() = new PowerModule();
|
||||
if(block.hasItems) entity.items() = new ItemModule();
|
||||
if(block.hasLiquids) entity.liquids() = new LiquidModule();
|
||||
if(block.hasPower) entity.power() = new PowerModule();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
}
|
||||
}
|
||||
player.set(world.width() * tilesize/2f, world.height() * tilesize/2f);
|
||||
player.setDead(false);
|
||||
player.dead(false);
|
||||
logic.play();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user