mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Intercept UnsupportedOperationException in getWorldConfig.
TemporaryPlayer issue: https://github.com/NoCheatPlus/Issues/issues/335
This commit is contained in:
parent
0ea8d379d0
commit
dcfdec79e2
@ -176,7 +176,11 @@ public class NetStatic {
|
||||
* @return
|
||||
*/
|
||||
public static NetConfig getWorldConfig(Player player, NetConfigCache configCache, NetDataFactory dataFactory) {
|
||||
final World world = player.getWorld();
|
||||
World world = null;
|
||||
try {
|
||||
world = player.getWorld();
|
||||
}
|
||||
catch (UnsupportedOperationException e) {}
|
||||
return configCache.getConfig(world == null ? dataFactory.getData(player).currentWorldName : world.getName());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user