mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Make empty containers stackable.
Makes Cardboardboxes, gastanks and fluidtanks stackable. Bins are already stackable. Fixes #3802
This commit is contained in:
1 parent
b3f1a9fee4
commit
b24cbb797a
3 files changed
+39
-3
No files matched your search
@@ -971,4 +971,18 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemStackLimit(ItemStack stack)
|
||||
{
|
||||
if(MachineType.get(stack) == MachineType.FLUID_TANK)
|
||||
{
|
||||
if(getFluidStack(stack) != null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 16;
|
||||
}
|
||||
return super.getItemStackLimit(stack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user