소스 검색

Reset Data

Unknown 5 년 전
부모
커밋
f323778c85
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/main/java/me/shedaniel/rei/impl/DisplayHelperImpl.java
  2. 1 0
      src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java

+ 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);