Fix inventory desync when activating drying rack/basin/oreberry

This commit is contained in:
Bernhard Bonigl committed 2014-11-25 21:45:37 +01:00
1 parent 90e5d6af25
commit e1101fa412
1 file changed
+3 -1
@@ -579,8 +579,10 @@ public class AbilityHelper
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();
}
}
}