Skip to content

Commit

Permalink
Fix drying racks/oreberries etc. not syncing inventory on pickup
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Dec 30, 2014
1 parent c46e6e0 commit 8c34b3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/tconstruct/library/tools/AbilityHelper.java
@@ -1,6 +1,7 @@
package tconstruct.library.tools;

import cofh.api.energy.IEnergyContainerItem;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.eventhandler.Event.Result;
import java.util.*;
Expand Down Expand Up @@ -612,7 +613,8 @@ public static void spawnItemAtPlayer (EntityPlayer player, ItemStack stack)
// if it got picked up, we're playing the sound
else {
player.worldObj.playSoundAtEntity(player, "random.pop", 0.2F, ((TConstruct.random.nextFloat() - TConstruct.random.nextFloat()) * 0.7F + 1.0F) * 2.0F);
player.inventory.markDirty();
if(player instanceof EntityPlayerMP)
player.inventoryContainer.detectAndSendChanges();
}
}

Expand Down

0 comments on commit 8c34b3e

Please sign in to comment.