Fix a couple more ItemStack null checks (#3586)

This commit is contained in:
Ben Staddon authored and LexManos committed 2017-01-11 15:15:47 -08:00
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())))
{