This commit is contained in:
Anuken
2021-03-01 13:06:47 -05:00
parent 1de4dd1bfe
commit 05dc13c922
12 changed files with 25 additions and 2 deletions

View File

@@ -256,6 +256,10 @@ public class Block extends UnlockableContent{
/** Drawn when you are placing a block. */
public void drawPlace(int x, int y, int rotation, boolean valid){
drawPotentialLinks(x, y);
}
public void drawPotentialLinks(int x, int y){
if((consumesPower || outputsPower) && hasPower){
Tile tile = world.tile(x, y);
if(tile != null){