Fix #2961 Capability data is not preserved by fluid handler interactions (#2976)

This commit is contained in:
mezz authored and LexManos committed 2016-06-13 20:01:28 -07:00
1 parent dd09da27b5
commit 9cd2c697e5
6 files changed
+14 -44

No files matched your search

@@ -280,8 +280,7 @@ public class UniversalBucket extends Item implements IFluidContainerItem
{
if (doFill)
{
container.setItem(Items.WATER_BUCKET);
container.setTagCompound(null);
container.deserializeNBT(new ItemStack(Items.WATER_BUCKET).serializeNBT());
}
return getCapacity();
}
@@ -289,8 +288,7 @@ public class UniversalBucket extends Item implements IFluidContainerItem
{
if (doFill)
{
container.setItem(Items.LAVA_BUCKET);
container.setTagCompound(null);
container.deserializeNBT(new ItemStack(Items.LAVA_BUCKET).serializeNBT());
}
return getCapacity();
}
@@ -318,9 +316,7 @@ public class UniversalBucket extends Item implements IFluidContainerItem
{
if(getEmpty() != null)
{
container.setItem(getEmpty().getItem());
container.setTagCompound(getEmpty().getTagCompound());
container.setItemDamage(getEmpty().getItemDamage());
container.deserializeNBT(getEmpty().serializeNBT());
}
else {
container.stackSize = 0;