Skip to content

Commit 114d4b7

Browse files
committed
adjust LevelMixin init injector priority (for #2046)
1 parent 70bbf85 commit 114d4b7

File tree

1 file changed

+2
-1
lines changed
  • arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level

1 file changed

+2
-1
lines changed

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level/LevelMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ public abstract class LevelMixin implements WorldBridge, LevelAccessor, LevelWri
122122
bridge$getWorld();
123123
}
124124

125-
@Inject(method = "<init>", at = @At("RETURN"))
125+
// InitAuther97: inject later than ironsspellbooks, see their LevelMixin
126+
@Inject(method = "<init>", at = @At("RETURN"), order = 1001)
126127
private void arclight$init(WritableLevelData info, ResourceKey<Level> dimension, RegistryAccess registryAccess, Holder<DimensionType> dimType, Supplier<ProfilerFiller> profiler, boolean isRemote, boolean isDebug, long seed, int maxNeighborUpdates, CallbackInfo ci) {
127128
((WorldBorderBridge) this.worldBorder).bridge$setWorld((Level) (Object) this);
128129
for (SpawnCategory spawnCategory : SpawnCategory.values()) {

0 commit comments

Comments
 (0)