mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Merge remote-tracking branch 'upstream/1.11' into 1.12_firstpass
This commit is contained in:
commit
df68b1e36a
299 files changed
+514
-9448
No files matched your search
@@ -39,7 +39,7 @@ public class ItemBlockCardboardBox extends ItemBlock
|
||||
public ItemBlockCardboardBox(Block block)
|
||||
{
|
||||
super(block);
|
||||
setMaxStackSize(1);
|
||||
setMaxStackSize(16);
|
||||
metaBlock = block;
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
@@ -169,4 +169,15 @@ public class ItemBlockCardboardBox extends ItemBlock
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemStackLimit(ItemStack stack)
|
||||
{
|
||||
BlockData blockData = getBlockData(stack);
|
||||
if(blockData != null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return super.getItemStackLimit(stack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user