From aa07fa4443704c2847a89af6469f10d3380f3728 Mon Sep 17 00:00:00 2001 From: Lex Manos Date: Fri, 28 Nov 2014 08:19:40 -0800 Subject: [PATCH] Fix potential NPE in Block.isToolEffective --- patches/minecraft/net/minecraft/block/Block.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/block/Block.java.patch b/patches/minecraft/net/minecraft/block/Block.java.patch index 89a48da348..2cf9c71627 100644 --- a/patches/minecraft/net/minecraft/block/Block.java.patch +++ b/patches/minecraft/net/minecraft/block/Block.java.patch @@ -1133,7 +1133,7 @@ + { + if ("pickaxe".equals(type) && (this == net.minecraft.init.Blocks.field_150450_ax || this == net.minecraft.init.Blocks.field_150439_ay || this == net.minecraft.init.Blocks.field_150343_Z)) + return false; -+ return type != null && getHarvestTool(state).equals(type); ++ return type != null && type.equals(getHarvestTool(state)); + } + + // For Internal use only to capture droped items inside getDrops