diff --git a/gradle.properties b/gradle.properties index 0d296c71..c69cbd6b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ loader_version_range=[4,) mod_id=sophisticatedcore mod_name=Sophisticated Core mod_license=GNU General Public License v3.0 -mod_version=1.0.12 +mod_version=1.0.13 mod_group_id=sophisticatedcore mod_authors=P3pp3rF1y mod_description=A library / shared functionality mod for Sophisticated Storage and Backpacks diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/feeding/FeedingUpgradeWrapper.java b/src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/feeding/FeedingUpgradeWrapper.java index 20708fa5..978ca61d 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/feeding/FeedingUpgradeWrapper.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedcore/upgrades/feeding/FeedingUpgradeWrapper.java @@ -87,8 +87,6 @@ private boolean tryFeedingStack(Level level, int hungerLevel, Player player, Int singleItemCopy.setCount(1); if (singleItemCopy.use(level, player, InteractionHand.MAIN_HAND).getResult() == InteractionResult.CONSUME) { - player.getInventory().items.set(player.getInventory().selected, mainHandItem); - stack.shrink(1); inventory.setStackInSlot(slot, stack); @@ -100,6 +98,8 @@ private boolean tryFeedingStack(Level level, int hungerLevel, Player player, Int InventoryHelper.insertOrDropItem(player, insertResult, playerInventory)); } } + + player.getInventory().items.set(player.getInventory().selected, mainHandItem); return true; } player.getInventory().items.set(player.getInventory().selected, mainHandItem);