From 06de7536df253486bbf3fe607e55a5a9eaa652cb Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Tue, 5 Mar 2024 17:29:16 +0100 Subject: [PATCH] Fix error in packet handler --- .../de/ellpeck/actuallyadditions/mod/network/PacketHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java index bc2db3f23..f7c9a75f0 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java @@ -141,7 +141,7 @@ public final class PacketHandler { @OnlyIn(Dist.CLIENT) public void handleData(CompoundTag compound, PlayPayloadContext context) { CompoundTag dataTag = compound.getCompound("Data"); - Player player = context.player().get(); //ActuallyAdditions.PROXY.getCurrentPlayer(); + Player player = context.player().orElse(null); //ActuallyAdditions.PROXY.getCurrentPlayer(); if (player != null) { PlayerData.getDataFromPlayer(player).readFromNBT(dataTag, false);