mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Fix a couple more ItemStack null checks (#3586)
This commit is contained in:
1 parent
43f3b3ec65
commit
c4dea9fc66
2 files changed
+5
-4
No files matched your search
@@ -217,7 +217,7 @@ public class UniversalBucket extends Item
|
||||
|
||||
// not for us to handle
|
||||
ItemStack emptyBucket = event.getEmptyBucket();
|
||||
if (emptyBucket == null ||
|
||||
if (emptyBucket.isEmpty() ||
|
||||
!emptyBucket.isItemEqual(getEmpty()) ||
|
||||
(isNbtSensitive() && ItemStack.areItemStackTagsEqual(emptyBucket, getEmpty())))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user