Fixed a server crash with the packet handler

This commit is contained in:
Ellpeck 2016-12-28 15:02:28 +01:00
parent 881a2006c2
commit 3a00e2663c

View file

@ -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){