Skip to content

Commit b19fef0

Browse files
committed
Fix benchmark not working anymore
1 parent 6622da2 commit b19fef0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/cyclops/integratedscripting/evaluate/translation/BenchmarkValueTranslators.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.cyclops.integratedscripting.evaluate.translation;
22

3+
import net.minecraft.DetectedVersion;
4+
import net.minecraft.SharedConstants;
35
import net.minecraft.nbt.CompoundTag;
46
import net.minecraft.nbt.IntTag;
57
import net.minecraft.nbt.StringTag;
@@ -22,6 +24,8 @@
2224
public class BenchmarkValueTranslators {
2325

2426
static {
27+
// We need the Minecraft registries to be filled
28+
SharedConstants.setVersion(DetectedVersion.BUILT_IN);
2529
Bootstrap.bootStrap();
2630
}
2731

0 commit comments

Comments
 (0)