Fix mappingregistry, readd an async chunk hunk

This commit is contained in:
Nassim Jahnke
2021-11-23 21:07:19 +01:00
parent c36c2d46d3
commit 682bb3f9c0
3 changed files with 15 additions and 18 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -29,10 +29,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@Nullable
protected Object[] randomCache;
@@ -0,0 +0,0 @@ public class MappedRegistry<T> extends WritableRegistry<T> {
public MappedRegistry(ResourceKey<? extends Registry<T>> key, Lifecycle lifecycle) {
super(key, lifecycle);
- this.elementsLifecycle = lifecycle;
this.elementsLifecycle = lifecycle;
+ this.toId.defaultReturnValue(-1); // Paper
}