mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 12:38:40 +01:00
Refactoring
This commit is contained in:
parent
786c140ebd
commit
b508d08bba
@ -101,7 +101,7 @@ public class RestrictedSign implements Listener {
|
|||||||
|
|
||||||
Sign sign = (Sign) relative.getState();
|
Sign sign = (Sign) relative.getState();
|
||||||
|
|
||||||
if (!BlockUtil.getAttachedFace(sign).equals(currentBlock)) {
|
if (!BlockUtil.getAttachedBlock(sign).equals(currentBlock)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,6 +108,6 @@ public class uBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean signIsAttachedToBlock(Sign sign, Block block) {
|
private static boolean signIsAttachedToBlock(Sign sign, Block block) {
|
||||||
return sign.getBlock().equals(block) || BlockUtil.getAttachedFace(sign).equals(block);
|
return sign.getBlock().equals(block) || BlockUtil.getAttachedBlock(sign).equals(block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user