Skip to content

Commit 7a59eab

Browse files
Bennyboy1695Runemoro
authored andcommitted
check if scoreboard is null to stop issues where it may be null (#178)
1 parent d6390e4 commit 7a59eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/dimdev/vanillafix/bugs/mixins/client/MixinNetHandlerPlayClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void handleRespawn(SPacketRespawn packetIn) {
3636

3737
Scoreboard scoreboard = world.getScoreboard();
3838
world = new WorldClient((NetHandlerPlayClient) (Object) this, new WorldSettings(0L, packetIn.getGameType(), false, client.world.getWorldInfo().isHardcoreModeEnabled(), packetIn.getWorldType()), packetIn.getDimensionID(), packetIn.getDifficulty(), client.profiler);
39-
world.setWorldScoreboard(scoreboard);
39+
if (scoreboard != null) world.setWorldScoreboard(scoreboard);
4040
client.loadWorld(world);
4141
client.player.dimension = packetIn.getDimensionID();
4242
}

0 commit comments

Comments
 (0)