Skip to content

Commit 14a2cd3

Browse files
committed
FIXED: when we're loading world with MV in some cases we can get difficulty null and get crash server
1 parent da488f4 commit 14a2cd3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,13 @@
152152
this.field_76104_m = p_76084_1_;
153153
}
154154

155-
@@ -709,6 +738,11 @@
155+
@@ -704,11 +733,16 @@
156+
157+
public EnumDifficulty func_176130_y()
158+
{
159+
- return this.field_176158_z;
160+
+ return this.field_176158_z == null ? this.field_176158_z = MinecraftServer.getServerInst().func_147135_j() : this.field_176158_z;
161+
}
156162

157163
public void func_176144_a(EnumDifficulty p_176144_1_)
158164
{

0 commit comments

Comments
 (0)