mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-19 09:03:02 -04:00
Fixed bug in ObjectCreator with creating custom objects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user