aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-12-27 01:19:25 +0800
committershedaniel <daniel@shedaniel.me>2021-12-27 01:19:25 +0800
commit220d3e41a1d0a6443890b5624ec41a89c7a4cd45 (patch)
tree7cc3dc6ef64584b871cf5f4dd800b795f3299009 /runtime
parenta9bea650261caebb991743412a950581e471cd13 (diff)
downloadRoughlyEnoughItems-220d3e41a1d0a6443890b5624ec41a89c7a4cd45.tar.gz
RoughlyEnoughItems-220d3e41a1d0a6443890b5624ec41a89c7a4cd45.tar.bz2
RoughlyEnoughItems-220d3e41a1d0a6443890b5624ec41a89c7a4cd45.zip
Fix support for Enchantment Descriptions
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
index 136429680..95504c6a6 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
@@ -233,7 +233,9 @@ public class EntryRegistryImpl implements EntryRegistry {
private MutableLong lastRefilterWarning = new MutableLong(-1);
- private Collection<EntryStack<?>> refilterNew(Collection<EntryStack<?>> entries) {
+ @ApiStatus.Internal
+ @Override
+ public Collection<EntryStack<?>> refilterNew(Collection<EntryStack<?>> entries) {
if (lastRefilterWarning != null) {
if (lastRefilterWarning.getValue() > 0 && System.currentTimeMillis() - lastRefilterWarning.getValue() > 5000) {
RoughlyEnoughItemsCore.LOGGER.warn("Detected runtime EntryRegistry modification, this can be extremely dangerous, or be extremely inefficient!");