mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fix potential NPE in Block.isToolEffective
This commit is contained in:
1 parent
d879b2c70d
commit
aa07fa4443
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user