aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-12-27 01:19:25 +0800
committershedaniel <daniel@shedaniel.me>2022-01-01 04:10:55 +0800
commit007fad7847ef4ac192c79032029fa9921506fe1e (patch)
treea70e3164ed01400041709f79aec0eafa40fe44b7 /runtime/src/main/java
parent3ba5c46ef229cd838a1dc9ad3554ee2d1c162b14 (diff)
downloadRoughlyEnoughItems-007fad7847ef4ac192c79032029fa9921506fe1e.tar.gz
RoughlyEnoughItems-007fad7847ef4ac192c79032029fa9921506fe1e.tar.bz2
RoughlyEnoughItems-007fad7847ef4ac192c79032029fa9921506fe1e.zip
Fix support for Enchantment Descriptions
Diffstat (limited to 'runtime/src/main/java')
-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!");