mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2025-02-10 00:11:25 +01:00
Update fence / wood stairs checks to use LegacyUtil
This commit is contained in:
parent
00341a814d
commit
70a386ec91
@ -151,7 +151,7 @@ public class PlayerListener implements Listener {
|
||||
if (openEverywhere) {
|
||||
barrel = Barrel.get(clickedBlock);
|
||||
}
|
||||
} else if (Barrel.isStairs(type)) {
|
||||
} else if (LegacyUtil.isWoodStairs(type)) {
|
||||
for (Barrel barrel2 : Barrel.barrels) {
|
||||
if (barrel2.hasStairsBlock(clickedBlock)) {
|
||||
if (openEverywhere || !barrel2.isLarge()) {
|
||||
@ -160,7 +160,7 @@ public class PlayerListener implements Listener {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (Barrel.isFence(type) || LegacyUtil.isSign(type)) {
|
||||
} else if (LegacyUtil.isFence(type) || LegacyUtil.isSign(type)) {
|
||||
barrel = Barrel.getBySpigot(clickedBlock);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user