MachineMuse / MachineMusePowersuits

Minecraft mod, take 2
236 stars 105 forks source link

onPlayerLogin should not be static #736

Closed gnif closed 7 years ago

gnif commented 7 years ago

onPlayerLogin should not be static, this prevents players joining a dedicated server.

gnif commented 7 years ago

The following error occurs if this method is static when a player joins.

[06:14:51] [Server thread/ERROR] [FML/]: HandshakeCompletionHandler exception
java.lang.IncompatibleClassChangeError: Expecting non-static method net.machinemuse.powersuits.event.PlayerLoginHandlerThingy.onPlayerLogin(Lcpw/mods/fml/common/gameevent/PlayerEvent$PlayerLoggedInEvent;)V
        at cpw.mods.fml.common.eventhandler.ASMEventHandler_179_PlayerLoginHandlerThingy_onPlayerLogin_PlayerLoggedInEvent.invoke(.dynamic) ~[?:?]