Remove duplicated universal buckets from the creative list (#3035)
This commit is contained in:
parent
0b1e94babd
commit
99616a503f
1 changed files with 8 additions and 5 deletions
|
@ -85,12 +85,15 @@ public class UniversalBucket extends Item implements IFluidContainerItem
|
||||||
{
|
{
|
||||||
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values())
|
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values())
|
||||||
{
|
{
|
||||||
// add all fluids that the bucket can be filled with
|
if (fluid != FluidRegistry.WATER && fluid != FluidRegistry.LAVA && !fluid.getName().equals("milk"))
|
||||||
FluidStack fs = new FluidStack(fluid, getCapacity());
|
|
||||||
ItemStack stack = new ItemStack(this);
|
|
||||||
if (fill(stack, fs, true) == fs.amount)
|
|
||||||
{
|
{
|
||||||
subItems.add(stack);
|
// add all fluids that the bucket can be filled with
|
||||||
|
FluidStack fs = new FluidStack(fluid, getCapacity());
|
||||||
|
ItemStack stack = new ItemStack(this);
|
||||||
|
if (fill(stack, fs, true) == fs.amount)
|
||||||
|
{
|
||||||
|
subItems.add(stack);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue