mirror of
https://github.com/Shiewk/BedrockDeathScreen.git
synced 2026-04-27 22:44:17 +02:00
Fix entering worlds on some clients
This commit is contained in:
@@ -23,8 +23,11 @@ public class MixinMinecraftClient {
|
||||
argsOnly = true
|
||||
)
|
||||
public Screen onCreateDeathScreen(Screen value){
|
||||
assert world != null; // Always true
|
||||
return new BedrockDeathScreen(null, world.getLevelProperties().isHardcore());
|
||||
if (world != null){
|
||||
return new BedrockDeathScreen(null, world.getLevelProperties().isHardcore());
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user