Skip to content

Commit

Permalink
fix a dupe bug with farmers delight (related to #228, but on newer ve…
Browse files Browse the repository at this point in the history
…rsions)
  • Loading branch information
Mari023 committed Nov 9, 2023
1 parent a3395d1 commit 385b15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- fix dupe bug with farmers delight
2 changes: 1 addition & 1 deletion src/main/java/de/mari_023/ae2wtlib/AE2wtlibEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void restock(ServerPlayer player, ItemStack item, int count, Consu
* @return True if the entire stack is successfully inserted; false otherwise.
*/
public static boolean insertStackInME(ItemStack stack, Player player) {
if (stack.isEmpty())
if (stack.isEmpty() || player.level().isClientSide())
return false;
CraftingTerminalHandler cTHandler = CraftingTerminalHandler.getCraftingTerminalHandler(player);
ItemStack terminal = cTHandler.getCraftingTerminal();
Expand Down

0 comments on commit 385b15d

Please sign in to comment.