From 95ea1663038362efb2bdb61d521ee6e4274a34f7 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sun, 18 Sep 2022 02:20:25 +0800 Subject: Fix #1034 --- .../java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java | 7 +++++++ .../src/main/resources/assets/roughlyenoughitems/lang/en_us.json | 1 + 2 files changed, 8 insertions(+) (limited to 'runtime/src/main') diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java index 83964e65c..f65e67dcb 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java @@ -425,6 +425,12 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { return advanced.search.asyncSearchPartitionSize; } + @Override + @ApiStatus.Experimental + public boolean isPatchingAsyncThreadCrash() { + return advanced.search.patchAsyncThreadCrash; + } + @Override @ApiStatus.Experimental public boolean doDebugSearchTimeRequired() { @@ -673,6 +679,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { @Comment("Declares whether REI should search async.") private boolean asyncSearch = true; @Comment("Declares how many entries should be grouped one async search.") @ConfigEntry.BoundedDiscrete(min = 25, max = 400) private int asyncSearchPartitionSize = 100; + private boolean patchAsyncThreadCrash = true; @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) private SearchMode tooltipSearch = SearchMode.ALWAYS; @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) diff --git a/runtime/src/main/resources/assets/roughlyenoughitems/lang/en_us.json b/runtime/src/main/resources/assets/roughlyenoughitems/lang/en_us.json index c701e1e10..9b4606603 100755 --- a/runtime/src/main/resources/assets/roughlyenoughitems/lang/en_us.json +++ b/runtime/src/main/resources/assets/roughlyenoughitems/lang/en_us.json @@ -249,6 +249,7 @@ "config.roughlyenoughitems.accessibility.entrySize": "Entry Size:", "config.roughlyenoughitems.search.asyncSearch": "Async Search:", "config.roughlyenoughitems.search.asyncSearchPartitionSize": "Async Search Partition Size:", + "config.roughlyenoughitems.search.patchAsyncThreadCrash": "Patch Async Thread Crash:", "config.roughlyenoughitems.accessibility.useCompactTabs": "Compact Tabs:", "config.roughlyenoughitems.accessibility.useCompactTabButtons": "Compact Tab Arrow Buttons:", "config.roughlyenoughitems.theme": "Appearance Theme:", -- cgit