1
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:
Shy
2025-05-25 14:49:10 +02:00
parent 3fae169592
commit 58fc674bbf
@@ -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;
}
}
}