mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
Update to 1.11.2. Untested, still using outdated MCMP
This commit is contained in:
1 parent
2b02042f4c
commit
6a42eb64e3
666 files changed
+11360
-3713
No files matched your search
@@ -72,8 +72,10 @@ public class ItemBlockCardboardBox extends ItemBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumActionResult onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand)
|
||||
public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand)
|
||||
{
|
||||
ItemStack stack = player.getHeldItem(hand);
|
||||
|
||||
if(!player.isSneaking() && !world.isAirBlock(pos) && stack.getItemDamage() == 0)
|
||||
{
|
||||
IBlockState state = world.getBlockState(pos);
|
||||
@@ -99,7 +101,7 @@ public class ItemBlockCardboardBox extends ItemBlock
|
||||
|
||||
if(!player.capabilities.isCreativeMode)
|
||||
{
|
||||
stack.stackSize--;
|
||||
stack.shrink(1);
|
||||
}
|
||||
|
||||
world.setBlockState(pos, MekanismBlocks.CardboardBox.getStateFromMeta(1), 3);
|
||||
|
||||
Reference in new issue
Block a user