Browse Source

Reset Data

Unknown 5 years ago
parent
commit
f323778c85

+ 4 - 0
src/main/java/me/shedaniel/rei/impl/DisplayHelperImpl.java

@@ -93,6 +93,10 @@ public class DisplayHelperImpl implements DisplayHelper {
         this.baseBoundsHandler = baseBoundsHandler;
     }
     
+    public void resetData() {
+        screenDisplayBoundsHandlers.clear();
+    }
+    
     public void resetCache() {
         handlerCache.clear();
         handlerSortedCache.clear();

+ 1 - 0
src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java

@@ -230,6 +230,7 @@ public class RecipeHelperImpl implements RecipeHelper {
         this.displayVisibilityHandlers.clear();
         this.liveRecipeGenerators.clear();
         this.autoTransferHandlers.clear();
+        ((DisplayHelperImpl) RoughlyEnoughItemsCore.getDisplayHelper()).resetData();
         ((DisplayHelperImpl) RoughlyEnoughItemsCore.getDisplayHelper()).resetCache();
         BaseBoundsHandler baseBoundsHandler = new BaseBoundsHandlerImpl();
         RoughlyEnoughItemsCore.getDisplayHelper().registerBoundsHandler(baseBoundsHandler);