mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
small flixes
This commit is contained in:
parent
2b8c5f6851
commit
0ab03d7b77
@ -24,7 +24,7 @@ public class ItemPipette extends Item implements IFillableItem {
|
|||||||
|
|
||||||
@SideOnly(Side.CLIENT) protected IIcon overlayIcon;
|
@SideOnly(Side.CLIENT) protected IIcon overlayIcon;
|
||||||
|
|
||||||
public int amount = 50;
|
public int amount;
|
||||||
|
|
||||||
public FluidType type = Fluids.NONE;
|
public FluidType type = Fluids.NONE;
|
||||||
|
|
||||||
@ -40,6 +40,7 @@ public class ItemPipette extends Item implements IFillableItem {
|
|||||||
stack.stackTagCompound = new NBTTagCompound();
|
stack.stackTagCompound = new NBTTagCompound();
|
||||||
|
|
||||||
this.setFill(stack, type, 0);
|
this.setFill(stack, type, 0);
|
||||||
|
this.amount = getMaxFill()
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFill(ItemStack stack, FluidType type, int fill) {
|
public void setFill(ItemStack stack, FluidType type, int fill) {
|
||||||
@ -95,8 +96,8 @@ public class ItemPipette extends Item implements IFillableItem {
|
|||||||
@Override
|
@Override
|
||||||
public boolean acceptsFluid(FluidType type, ItemStack stack) {
|
public boolean acceptsFluid(FluidType type, ItemStack stack) {
|
||||||
if(this == ModItems.pipette_boron || this == ModItems.pipette_laboratory)
|
if(this == ModItems.pipette_boron || this == ModItems.pipette_laboratory)
|
||||||
return (type == this.type || this.getFill(stack, type) == 0);
|
return (type == this.type || this.getFill(stack, type) == 0 && !type.isAntimatter());
|
||||||
return (type == this.type || this.getFill(stack, type) == 0) && !type.needsLeadContainer();
|
return (type == this.type || this.getFill(stack, type) == 0) && (!type.isCorrosive() && !type.isAntimatter());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user