Upgradeable cores

This commit is contained in:
Anuken
2020-06-27 19:16:39 -04:00
parent 313cadb763
commit 80332e37d5
63 changed files with 365 additions and 290 deletions

View File

@@ -450,9 +450,9 @@ public class PlacementFragment extends Fragment{
Tile hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
if(hoverTile != null){
//if the tile has an entity, display it
if(hoverTile.entity != null){
hoverTile.entity.updateFlow(true);
return hoverTile.entity;
if(hoverTile.build != null){
hoverTile.build.updateFlow(true);
return hoverTile.build;
}
//if the tile has a drop, display the drop