Remove duplicated universal buckets from the creative list (#3035)
This commit is contained in:
parent
0b1e94babd
commit
99616a503f
|
@ -84,6 +84,8 @@ public class UniversalBucket extends Item implements IFluidContainerItem
|
||||||
public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)
|
public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)
|
||||||
{
|
{
|
||||||
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values())
|
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values())
|
||||||
|
{
|
||||||
|
if (fluid != FluidRegistry.WATER && fluid != FluidRegistry.LAVA && !fluid.getName().equals("milk"))
|
||||||
{
|
{
|
||||||
// add all fluids that the bucket can be filled with
|
// add all fluids that the bucket can be filled with
|
||||||
FluidStack fs = new FluidStack(fluid, getCapacity());
|
FluidStack fs = new FluidStack(fluid, getCapacity());
|
||||||
|
@ -94,6 +96,7 @@ public class UniversalBucket extends Item implements IFluidContainerItem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemStackDisplayName(ItemStack stack)
|
public String getItemStackDisplayName(ItemStack stack)
|
||||||
|
|
Loading…
Reference in New Issue