mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +00:00
Fix bug causing NPE if non-whitelisted player joins an FML server without FML installed
This commit is contained in:
1 parent
e9cfd10e39
commit
fbc7a5c063
1 file changed
+6
@@ -120,6 +120,12 @@ public class FMLNetworkHandler
|
|||||||
netLoginHandler.completeConnection("You don't have FML installed, you cannot connect to this server");
|
netLoginHandler.completeConnection("You don't have FML installed, you cannot connect to this server");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Vanilla kicked us for some reason - bye now!
|
||||||
|
FMLLog.fine("Connection from %s was closed by vanilla minecraft", userName);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
switch (loginStates.get(netLoginHandler))
|
switch (loginStates.get(netLoginHandler))
|
||||||
|
|||||||
Reference in new issue
Block a user