onPlayerLogin should not be static
`onPlayerLogin` should not be static, this prevents players joining a dedicated server.
This commit is contained in:
parent
3c24d9aec2
commit
f338f4429a
|
@ -15,8 +15,8 @@ import net.minecraft.entity.player.EntityPlayerMP;
|
|||
*/
|
||||
public class PlayerLoginHandlerThingy {
|
||||
@SubscribeEvent
|
||||
public static void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent e) {
|
||||
public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent e) {
|
||||
EntityPlayer player = e.player;
|
||||
PacketSender.sendTo(new MusePacketPropertyModifierConfig(player, null), (EntityPlayerMP)player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue