From 3a00e2663cf90f5bf6806a85989077f074dbba90 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 28 Dec 2016 15:02:28 +0100 Subject: [PATCH] Fixed a server crash with the packet handler --- .../ellpeck/actuallyadditions/mod/network/PacketHandler.java | 3 ++- 1 file changed, 2 insertions(+), 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 76611cd8e..511e8a1b5 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java @@ -10,6 +10,7 @@ package de.ellpeck.actuallyadditions.mod.network; +import de.ellpeck.actuallyadditions.mod.ActuallyAdditions; import de.ellpeck.actuallyadditions.mod.data.PlayerData; import de.ellpeck.actuallyadditions.mod.data.WorldData; import de.ellpeck.actuallyadditions.mod.network.gui.IButtonReactor; @@ -151,7 +152,7 @@ public final class PacketHandler{ } } else{ - player = Minecraft.getMinecraft().player; + player = ActuallyAdditions.proxy.getCurrentPlayer(); } if(player != null){