aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-25 21:54:18 +0800
committershedaniel <daniel@shedaniel.me>2019-12-25 21:54:59 +0800
commit99d4e59c0d8d4acc5200f5b3b40a1b4f0b34157b (patch)
tree2bae1ed7fb859986af54f8e489542fc9562ffc07 /src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java
parent5a58a7b2eb5b9eedebb1c108d2ed45250b176c16 (diff)
downloadRoughlyEnoughItems-99d4e59c0d8d4acc5200f5b3b40a1b4f0b34157b.tar.gz
RoughlyEnoughItems-99d4e59c0d8d4acc5200f5b3b40a1b4f0b34157b.tar.bz2
RoughlyEnoughItems-99d4e59c0d8d4acc5200f5b3b40a1b4f0b34157b.zip
Reset entries, fix #222
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java b/src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java
index 7fd4f8d1b..42913d71c 100644
--- a/src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java
+++ b/src/main/java/me/shedaniel/rei/impl/EntryRegistryImpl.java
@@ -52,6 +52,11 @@ public class EntryRegistryImpl implements EntryRegistry {
return entries;
}
+ public void reset() {
+ entries.clear();
+ entrySet.clear();
+ }
+
@Override
public ItemStack[] getAllStacksFromItem(Item item) {
DefaultedList<ItemStack> list = DefaultedList.of();