Skip to content

Commit

Permalink
Fix inventory desync when activating drying rack/basin/oreberry
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Nov 25, 2014
1 parent 90e5d6a commit e1101fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/tconstruct/library/tools/AbilityHelper.java
Expand Up @@ -579,8 +579,10 @@ public static void spawnItemAtPlayer (EntityPlayer player, ItemStack stack)
entityitem.onCollideWithPlayer(player);
}
// if it got picked up, we're playing the sound
else
else {
player.worldObj.playSoundAtEntity(player, "random.pop", 0.2F, ((TConstruct.random.nextFloat() - TConstruct.random.nextFloat()) * 0.7F + 1.0F) * 2.0F);
player.inventory.markDirty();
}
}

}
Expand Down

0 comments on commit e1101fa

Please sign in to comment.