diff --git a/nms-patches/BlockComposter.patch b/nms-patches/BlockComposter.patch index 40a299aef3..b5fc538b14 100644 --- a/nms-patches/BlockComposter.patch +++ b/nms-patches/BlockComposter.patch @@ -42,7 +42,23 @@ } @Override -@@ -313,8 +317,9 @@ +@@ -306,15 +310,23 @@ + + @Override + public void update() { +- BlockComposter.d(this.a, this.b, this.c); +- this.d = true; ++ // CraftBukkit start - allow putting items back (eg cancelled InventoryMoveItemEvent) ++ if (this.isNotEmpty()) { ++ BlockComposter.d(this.a, this.b, this.c); ++ this.d = true; ++ } else { ++ this.b.setTypeAndData(this.c, this.a, 3); ++ this.d = false; ++ } ++ // CraftBukkit end + } + } static class ContainerEmpty extends InventorySubcontainer implements IWorldInventory {