mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Fix error in packet handler
This commit is contained in:
parent
abbc1ae90c
commit
06de7536df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue