Merge pull request 'Fix client side pseudo item entity dropped from lore book' (#167) from Low-power/The-Aether:1.7.10-fix-lore-book-drop-item-entity-in-client-world into 1.7.10
Reviewed-on: https://gitea.gildedgames.com/GildedGames/The-Aether/pulls/167
This commit is contained in:
commit
8bb5d3bd91
1 changed files with 6 additions and 4 deletions
|
@ -74,11 +74,13 @@ public class ContainerLore extends Container {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onContainerClosed(EntityPlayer entityplayer) {
|
public void onContainerClosed(EntityPlayer entityplayer) {
|
||||||
|
if(!entityplayer.worldObj.isRemote) {
|
||||||
ItemStack item = this.loreSlot.getStackInSlot(0);
|
ItemStack item = this.loreSlot.getStackInSlot(0);
|
||||||
|
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
entityplayer.entityDropItem(item, 1.0F);
|
entityplayer.entityDropItem(item, 1.0F);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
super.onContainerClosed(entityplayer);
|
super.onContainerClosed(entityplayer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue