mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Temporary disable stacking of gastanks
Temp fix for #4696 as a whole lot of code assumes gastanks aren't stackable at all
This commit is contained in:
1 parent
2c4c997e02
commit
a4957dab53
1 file changed
+1
-12
@@ -63,7 +63,7 @@ public class ItemBlockGasTank extends ItemBlock implements IGasItem, ISustainedI
|
||||
super(block);
|
||||
metaBlock = block;
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(16);
|
||||
setMaxStackSize(1);
|
||||
setCreativeTab(Mekanism.tabMekanism);
|
||||
}
|
||||
|
||||
@@ -403,15 +403,4 @@ public class ItemBlockGasTank extends ItemBlock implements IGasItem, ISustainedI
|
||||
{
|
||||
return hasSecurity(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemStackLimit(ItemStack stack)
|
||||
{
|
||||
GasStack gasStack = getGas(stack);
|
||||
if(gasStack != null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return super.getItemStackLimit(stack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user