Skip to content

Commit

Permalink
Fixed client data not updating when installed on a server
Browse files Browse the repository at this point in the history
  • Loading branch information
Learwin committed Mar 4, 2023
1 parent 7855875 commit 54b7e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/learwin/randomplace/RandomPlacerItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean isFull3D() {

@Override
public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer player) {
if (!worldIn.isRemote && player.isSneaking()) {
if (player.isSneaking()) {
NBTTagCompound nbt = itemStackIn.getTagCompound();
useWholeInventory = !useWholeInventory;
if (nbt == null) {
Expand Down

0 comments on commit 54b7e8b

Please sign in to comment.