Skip to content

Commit

Permalink
Fix Broken Sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedelosk committed Dec 17, 2017
1 parent aac4d73 commit b3be6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/forestry/core/gui/ContainerSocketedHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public void handleSolderingIronClickServer(int slot, EntityPlayerMP player, Item
return;
}

InventoryUtil.stowInInventory(socket, player.inventory, true);
// Not sufficient space in player's inventory. failed to stow.
if (!socket.isEmpty()) {
if (!InventoryUtil.stowInInventory(socket, player.inventory, false)) {
return;
}

tile.setSocket(slot, ItemStack.EMPTY);
InventoryUtil.stowInInventory(socket, player.inventory, true);
itemstack.damageItem(1, player);
player.updateHeldItem();

Expand Down

0 comments on commit b3be6a8

Please sign in to comment.