mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Fixed template parsing in ObjectCreator
This commit is contained in:
@@ -57,7 +57,7 @@ public final class ObjectCreator {
|
||||
return null;
|
||||
if (!template.endsWith(".iff"))
|
||||
return null;
|
||||
SWGObject obj = createObjectFromType(objectId, getFirstTemplatePart(template.substring(7, template.length()-7-4)));
|
||||
SWGObject obj = createObjectFromType(objectId, getFirstTemplatePart(template.substring(7, template.length())));
|
||||
if (obj == null)
|
||||
return null;
|
||||
obj.setTemplate(template);
|
||||
@@ -84,7 +84,7 @@ public final class ObjectCreator {
|
||||
case "tangible": return new TangibleObject(objectId);
|
||||
case "waypoint": return new WaypointObject(objectId);
|
||||
case "weapon": return new WeaponObject(objectId);
|
||||
default: return null;
|
||||
default: System.err.println("Unknown type: " + type); return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user