Multi-building command selection

This commit is contained in:
Anuken
2025-07-27 00:50:10 -04:00
parent 57ae1b3ec1
commit 0aa1bd7df9
3 changed files with 32 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ public class ColoredFloor extends Floor{
@Override
public boolean checkAutotileSame(Tile tile, @Nullable Tile other){
return other != null && other.floor().blendGroup == blendGroup && ((tile.extraData & 0xff) == flagIgnoreDifferentColor || tile.extraData == other.extraData);
return other != null && (this == tile.floor() ? other.floor() : other.overlay()).blendGroup == blendGroup && ((tile.extraData & 0xff) == flagIgnoreDifferentColor || tile.extraData == other.extraData);
}
@Override

View File

@@ -265,7 +265,7 @@ public class Floor extends Block{
}
public boolean checkAutotileSame(Tile tile, @Nullable Tile other){
return other != null && other.floor().blendGroup == blendGroup;
return other != null && (this == tile.floor() ? other.floor() : other.overlay()).blendGroup == blendGroup;
}
public int variant(int x, int y){