Optionally add a milk fluid to the vanilla bucket (#7294)

Fixes the previous broken code that was supposed to make mod registered milk returned by the vanilla bucket by allowing mods to enable a milk fluid.
This commit is contained in:
KnightMiner authored and GitHub committed 2021-01-17 16:05:24 -05:00
1 parent f173bde812
commit 19f8d2a793
13 files changed
+189 -8

No files matched your search

@@ -643,10 +643,6 @@ public class FluidUtil
{
return new ItemStack(Items.LAVA_BUCKET);
}
else if (fluid.getRegistryName().equals(new ResourceLocation("milk")))
{
return new ItemStack(Items.MILK_BUCKET);
}
}
return fluid.getAttributes().getBucket(fluidStack);