Fix rotating nether portals
This commit is contained in:
parent
70004084f1
commit
9234f870c6
|
|
@ -73,7 +73,7 @@ public class RotateBlockEvent implements Listener {
|
||||||
} else if (block.getBlockData() instanceof Directional directional) {
|
} else if (block.getBlockData() instanceof Directional directional) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
rotateDirectionalBlock(block, directional, player);
|
rotateDirectionalBlock(block, directional, player);
|
||||||
} else if (block.getBlockData() instanceof Orientable orientable) {
|
} else if (block.getBlockData() instanceof Orientable orientable && !block.getType().equals(Material.NETHER_PORTAL)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
rotateOrientableBlock(block, orientable, player);
|
rotateOrientableBlock(block, orientable, player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user