Skip to content

Commit

Permalink
Fix worldBorder init
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 26, 2024
1 parent 5f69591 commit bcbc419
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions patches/minecraft/net/minecraft/world/World.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@
+ if (environment == null) {
+ environment = ForgeInjectBukkit.environment.getOrDefault(p_i241925_3_, org.bukkit.World.Environment.CUSTOM);
+ }
+ func_175723_af().world = this; // Mohist move form ServerWorld
+
this.field_72984_F = p_i241925_4_;
this.field_72986_A = p_i241925_1_;
this.field_234921_x_ = p_i241925_3_;
@@ -102,11 +_,11 @@
@@ -102,17 +_,18 @@
if (p_i241925_3_.func_242724_f() != 1.0D) {
this.field_175728_M = new WorldBorder() {
public double func_230316_a_() {
Expand All @@ -155,6 +155,13 @@
}
};
} else {
this.field_175728_M = new WorldBorder();
}

+ func_175723_af().world = this; // Mohist move form ServerWorld
this.field_217407_c = Thread.currentThread();
this.field_226689_w_ = new BiomeManager(this, p_i241925_7_, p_i241925_3_.func_227176_e_());
this.field_234916_c_ = p_i241925_6_;
@@ -155,6 +_,11 @@
return this.func_212866_a_(p_175726_1_.func_177958_n() >> 4, p_175726_1_.func_177952_p() >> 4);
}
Expand Down

0 comments on commit bcbc419

Please sign in to comment.