Skip to content

Commit

Permalink
fix #226 (it seems like the fix for #198 got lost)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed Oct 27, 2023
1 parent 097fb21 commit db43205
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- fix #226
2 changes: 2 additions & 0 deletions src/main/java/de/mari_023/ae2wtlib/AE2wtlibEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class AE2wtlibEvents {
public static void restock(ServerPlayer player, ItemStack item, int count, Consumer<ItemStack> setStack) {
if (player.isCreative())
return;
if (item.isEmpty())
return;
CraftingTerminalHandler cTHandler = CraftingTerminalHandler.getCraftingTerminalHandler(player);
if (!cTHandler.inRange() || !ItemWT.getBoolean(cTHandler.getCraftingTerminal(), "restock")
|| cTHandler.getTargetGrid() == null || cTHandler.getTargetGrid().getStorageService() == null)
Expand Down

0 comments on commit db43205

Please sign in to comment.