From e776a8c524fe9481fa79d3b002a00c0cc13a5297 Mon Sep 17 00:00:00 2001 From: asofold Date: Wed, 5 Dec 2012 01:13:12 +0100 Subject: [PATCH] Fix NPE for block breaking. BlockCache.setAccess was missing (sloppy!). --- src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java b/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java index fcc997f5..f7690a85 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -872,6 +872,7 @@ public class BlockProperties { public static boolean isOnGround(Player player, Location location) { // return blockId != 0 && net.minecraft.server.Block.byId[blockId].//.c();// d(); // Bit fat workaround, maybe put the object through from check listener ? + blockCache.setAccess(location.getWorld()); pLoc.setBlockCache(blockCache); pLoc.set(location, player, 0.3); if (pLoc.isIllegal()) {