diff --git a/platform/platform-sportpaper/src/main/java/tc/oc/pgm/platform/sportpaper/NMSHacksSportPaper.java b/platform/platform-sportpaper/src/main/java/tc/oc/pgm/platform/sportpaper/NMSHacksSportPaper.java index ba3470ace1..e735673340 100644 --- a/platform/platform-sportpaper/src/main/java/tc/oc/pgm/platform/sportpaper/NMSHacksSportPaper.java +++ b/platform/platform-sportpaper/src/main/java/tc/oc/pgm/platform/sportpaper/NMSHacksSportPaper.java @@ -167,8 +167,9 @@ public boolean canMineBlock(BlockMaterialData blockMaterial, Player player) { @Override public void resetDimension(World world) { + var nmsWorld = ((CraftWorld) world).getHandle(); try { - ((CraftWorld) world).getHandle().dimension = 11; + nmsWorld.dimension = 11; } catch (IllegalAccessError e) { Field worldServerField = ReflectionUtils.getField(CraftWorld.class, "world"); @@ -182,6 +183,8 @@ public void resetDimension(World world) { // No-op, newer version of Java have disabled modifying final fields } } + + nmsWorld.craftingManager.lastCraftView = null; } @Override