mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Attempt to fix roadmap/.py error
This commit is contained in:
@@ -2,5 +2,4 @@ import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'creature/vehicle')
|
||||
object.setAttachment('passengers', 0)
|
||||
return
|
||||
@@ -2,5 +2,4 @@ import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'creature/vehicle')
|
||||
object.setAttachment('passengers', 0)
|
||||
return
|
||||
@@ -47,4 +47,8 @@ public final class Professions {
|
||||
return map.get(profession);
|
||||
}
|
||||
|
||||
public static boolean isProfession(String profession) {
|
||||
return map.containsKey(profession);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -228,6 +228,10 @@ public class CharacterService implements INetworkDispatch {
|
||||
ClientCreateCharacter clientCreateCharacter = new ClientCreateCharacter();
|
||||
clientCreateCharacter.deserialize(data);
|
||||
|
||||
if (!Professions.isProfession(clientCreateCharacter.getProfession())) {
|
||||
return;
|
||||
}
|
||||
|
||||
engine.resources.config.Config config = new engine.resources.config.Config();
|
||||
config.setFilePath("nge.cfg");
|
||||
if (!(config.loadConfigFile())) {
|
||||
|
||||
@@ -573,7 +573,7 @@ public class PlayerService implements INetworkDispatch {
|
||||
return;
|
||||
}
|
||||
|
||||
if (profession == null || profession.equals("")) {
|
||||
if (profession == null || !Professions.isProfession(profession)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user