forked from SteamWar/SteamWar
Hotfix MaterialLazyInit for 1.21
This commit is contained in:
@@ -87,6 +87,7 @@ public class MaterialLazyInit {
|
|||||||
Block block = Bukkit.getWorlds().get(0).getBlockAt(0, 0, 0);
|
Block block = Bukkit.getWorlds().get(0).getBlockAt(0, 0, 0);
|
||||||
block.setType(material);
|
block.setType(material);
|
||||||
unmoveable = block.getPistonMoveReaction() == PistonMoveReaction.BLOCK || block.getPistonMoveReaction() == PistonMoveReaction.IGNORE || block.getState() instanceof TileState;
|
unmoveable = block.getPistonMoveReaction() == PistonMoveReaction.BLOCK || block.getPistonMoveReaction() == PistonMoveReaction.IGNORE || block.getState() instanceof TileState;
|
||||||
|
block.setType(Material.AIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (material.isItem() && material != Material.AIR) {
|
if (material.isItem() && material != Material.AIR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user