mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
Fixed removeSkill bug, read extended
Under certain circumstances, a skill would not be removed because of an invalid skill mod being removed.
This commit is contained in:
@@ -221,7 +221,7 @@ public class SkillService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
for (String skillMod : skillMods) {
|
||||
core.skillModService.deductSkillMod(creature, skillMod.split("=")[0], new Integer(skillMod.split("=")[1]));
|
||||
if(skillMod.split("=").length == 2) core.skillModService.deductSkillMod(creature, skillMod.split("=")[0], new Integer(skillMod.split("=")[1]));
|
||||
}
|
||||
|
||||
for (String schematic : schematicsGranted) {
|
||||
|
||||
Reference in New Issue
Block a user