aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/tests/plugin
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-28 11:13:09 +0800
committershedaniel <daniel@shedaniel.me>2019-12-28 11:13:09 +0800
commit66e3304df4c3bb2189e86ffe7730fef7181bd088 (patch)
tree260e108df623728cb45835f52555e654665ac950 /src/main/java/me/shedaniel/rei/tests/plugin
parenta39860d419842ed49427b3c8dd541b7ef7ea2ab3 (diff)
downloadRoughlyEnoughItems-66e3304df4c3bb2189e86ffe7730fef7181bd088.tar.gz
RoughlyEnoughItems-66e3304df4c3bb2189e86ffe7730fef7181bd088.tar.bz2
RoughlyEnoughItems-66e3304df4c3bb2189e86ffe7730fef7181bd088.zip
More improvements to the entrylist
Diffstat (limited to 'src/main/java/me/shedaniel/rei/tests/plugin')
-rw-r--r--src/main/java/me/shedaniel/rei/tests/plugin/REITestPlugin.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/tests/plugin/REITestPlugin.java b/src/main/java/me/shedaniel/rei/tests/plugin/REITestPlugin.java
index 9eebeaee0..11f2ecf6f 100644
--- a/src/main/java/me/shedaniel/rei/tests/plugin/REITestPlugin.java
+++ b/src/main/java/me/shedaniel/rei/tests/plugin/REITestPlugin.java
@@ -15,6 +15,7 @@ import net.minecraft.util.registry.Registry;
import org.apache.logging.log4j.LogManager;
import org.jetbrains.annotations.TestOnly;
+import java.util.Collections;
import java.util.Random;
@TestOnly
@@ -36,8 +37,8 @@ public class REITestPlugin implements REIPluginV0 {
@Override
public void registerEntries(EntryRegistry entryRegistry) {
for (Item item : Registry.ITEM) {
- for (int i = 0; i < 15; i++)
- entryRegistry.registerEntry(transformStack(EntryStack.create(item)));
+ for (int i = 0; i < 5; i++)
+ entryRegistry.queueRegisterEntryAfter(EntryStack.create(item), Collections.singleton(transformStack(EntryStack.create(item))));
try {
for (ItemStack stack : entryRegistry.appendStacksForItem(item)) {
for (int i = 0; i < 15; i++)