More pattern variables
This commit is contained in:
@@ -249,7 +249,7 @@ public class ItemBridge extends Block{
|
|||||||
@Override
|
@Override
|
||||||
public boolean onConfigureTileTapped(Building other){
|
public boolean onConfigureTileTapped(Building other){
|
||||||
//reverse connection
|
//reverse connection
|
||||||
if(other instanceof ItemBridgeBuild && ((ItemBridgeBuild)other).link == pos()){
|
if(other instanceof ItemBridgeBuild b && b.link == pos()){
|
||||||
configure(other.pos());
|
configure(other.pos());
|
||||||
other.configure(-1);
|
other.configure(-1);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user