diff --git a/src/main/java/de/ellpeck/prettypipes/misc/ItemFilter.java b/src/main/java/de/ellpeck/prettypipes/misc/ItemFilter.java index ff90ac7..24b55b3 100644 --- a/src/main/java/de/ellpeck/prettypipes/misc/ItemFilter.java +++ b/src/main/java/de/ellpeck/prettypipes/misc/ItemFilter.java @@ -129,6 +129,7 @@ public class ItemFilter extends ItemStackHandler { public void save() { if (this.modified) { this.stack.getOrCreateTag().put("filter", this.serializeNBT()); + this.pipe.setChanged(); this.modified = false; } } diff --git a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java index cbfe68c..4a8eb8f 100644 --- a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java +++ b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java @@ -66,6 +66,11 @@ public class PipeBlockEntity extends BlockEntity implements MenuProvider, IPipeC public int getSlotLimit(int slot) { return 1; } + + @Override + protected void onContentsChanged(int slot) { + PipeBlockEntity.this.setChanged(); + } }; public final Queue craftIngredientRequests = new LinkedList<>(); public final List> craftResultRequests = new ArrayList<>();