mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
Merge pull request #4543 from thommy101/issue-3802
[1.11] Make empty containers stackable.
This commit is contained in:
commit
cb675a9e5d
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