Typo newConection
This commit is contained in:
@@ -58,13 +58,13 @@ public class NetworkHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void newConection(ServerConnectionFromClientEvent ev)
|
public void newConnection(ServerConnectionFromClientEvent ev)
|
||||||
{
|
{
|
||||||
WorldSettings.getInstance().sendToPlayer( ev.manager, null );
|
WorldSettings.getInstance().sendToPlayer( ev.manager, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void newConection(PlayerLoggedInEvent loginEvent)
|
public void newConnection(PlayerLoggedInEvent loginEvent)
|
||||||
{
|
{
|
||||||
if ( loginEvent.player instanceof EntityPlayerMP )
|
if ( loginEvent.player instanceof EntityPlayerMP )
|
||||||
WorldSettings.getInstance().sendToPlayer( null, (EntityPlayerMP) loginEvent.player );
|
WorldSettings.getInstance().sendToPlayer( null, (EntityPlayerMP) loginEvent.player );
|
||||||
|
|||||||
Reference in New Issue
Block a user