Fixed bug in ObjectCreator with creating custom objects

This commit is contained in:
Obique PSWG
2016-05-13 01:03:32 -05:00
parent abf925cb05
commit 17e9a80e3c
+1 -1
View File
@@ -91,7 +91,7 @@ public final class ObjectCreator {
public static <T extends SWGObject> T createObjectFromTemplate(long objectId, String template, Class <T> c) {
T obj;
try {
obj = c.getConstructor(Integer.TYPE).newInstance(objectId);
obj = c.getConstructor(Long.TYPE).newInstance(objectId);
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) {
e.printStackTrace();
obj = null;