Bugfixes & unit status polish
This commit is contained in:
@@ -109,7 +109,7 @@ public class EditorTile extends Tile{
|
||||
|
||||
if(block.hasEntity()){
|
||||
build = entityprov.get().init(this, team, false, rotation);
|
||||
build.cons(new ConsumeModule(build));
|
||||
build.cons = new ConsumeModule(build);
|
||||
if(block.hasItems) build.items = new ItemModule();
|
||||
if(block.hasLiquids) build.liquids(new LiquidModule());
|
||||
if(block.hasPower) build.power(new PowerModule());
|
||||
|
||||
@@ -254,14 +254,9 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
"height", editor.height()
|
||||
));
|
||||
world.endMapLoad();
|
||||
//add entities so they update. is this really needed?
|
||||
for(Tile tile : world.tiles){
|
||||
if(tile.build != null){
|
||||
tile.build.add();
|
||||
}
|
||||
}
|
||||
player.set(world.width() * tilesize/2f, world.height() * tilesize/2f);
|
||||
player.clearUnit();
|
||||
Groups.unit.clear();
|
||||
logic.play();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user