Multi-building command selection
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user