Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyyn authored May 27, 2024
1 parent 104c151 commit c5135aa
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,14 @@ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world,
return false;
}


@Override
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {
if (world.isRemote) {
return itemStack;
}

// Config to enable or disable Dollie
if (BetterBarrels.DisableStacking) {
if (BetterBarrels.disableDollyStacking) {
return itemStack;
}

Expand All @@ -205,7 +204,6 @@ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer
return itemStack;
}


if (player.isSneaking() && type == DollyType.NORMAL
&& (!itemStack.hasTagCompound() || !itemStack.getTagCompound().hasKey("Container"))) {
// Diamond dollies can't be folded because they can be damaged.
Expand All @@ -224,8 +222,6 @@ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer
return itemStack;
}



protected boolean placeContainer(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side) {
NBTTagCompound nbtStack = stack.getTagCompound();
NBTTagCompound nbtContainerStack = nbtStack.getCompoundTag("Container");
Expand Down

0 comments on commit c5135aa

Please sign in to comment.