mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 11:28:11 +01:00
Fix NPE for block breaking.
BlockCache.setAccess was missing (sloppy!).
This commit is contained in:
parent
9838cf4393
commit
e776a8c524
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user