From 6cb583c918799fc5a7c96ab222adefbfde662e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salom=C3=A3o?= Date: Tue, 15 Jun 2021 12:41:51 -0300 Subject: [PATCH] clear old NBT from cells --- src/main/java/appeng/me/storage/AbstractCellInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/appeng/me/storage/AbstractCellInventory.java b/src/main/java/appeng/me/storage/AbstractCellInventory.java index 27ca71d3f..e428e6493 100644 --- a/src/main/java/appeng/me/storage/AbstractCellInventory.java +++ b/src/main/java/appeng/me/storage/AbstractCellInventory.java @@ -151,7 +151,7 @@ public abstract class AbstractCellInventory> implements IC } // clean any old crusty stuff... - for( ; x < oldStoredItems && x < this.maxItemTypes; x++ ) + for( ; x >= oldStoredItems && x < this.maxItemTypes; x++ ) { this.tagCompound.removeTag( ITEM_SLOT_KEYS[x] ); this.tagCompound.removeTag( ITEM_SLOT_COUNT_KEYS[x] );