From 090d6ffae0a0f7efbcaa27ff9e45ce503fb8d391 Mon Sep 17 00:00:00 2001 From: MattiDragon Date: Thu, 1 Jun 2023 19:12:17 +0300 Subject: [PATCH] Fix compacting drawers breaking in some situations (#58) --- changelog/1.4.1+1.19.4.md | 3 ++- .../extendeddrawers/storage/CompactingDrawerStorage.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog/1.4.1+1.19.4.md b/changelog/1.4.1+1.19.4.md index 3b19aaf..5393634 100644 --- a/changelog/1.4.1+1.19.4.md +++ b/changelog/1.4.1+1.19.4.md @@ -2,4 +2,5 @@ * Render icons for compacting drawers as if they were attached to the top slot * Make default item scale slightly smaller * Add more options for adjusting positioning and size of drawer elements (you will need to redo all of your related changes) -* Fix compacting drawers not voiding items \ No newline at end of file +* Fix compacting drawers not voiding items +* Fix compacting drawers breaking in some situations (#58) \ No newline at end of file diff --git a/src/main/java/io/github/mattidragon/extendeddrawers/storage/CompactingDrawerStorage.java b/src/main/java/io/github/mattidragon/extendeddrawers/storage/CompactingDrawerStorage.java index 050c983..8940548 100644 --- a/src/main/java/io/github/mattidragon/extendeddrawers/storage/CompactingDrawerStorage.java +++ b/src/main/java/io/github/mattidragon/extendeddrawers/storage/CompactingDrawerStorage.java @@ -107,6 +107,7 @@ protected Snapshot createSnapshot() { protected void readSnapshot(Snapshot snapshot) { item = snapshot.item; amount = snapshot.amount; + updatePending = true; } @Override