mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
Fixed use() in object scripts. It should work now
This commit is contained in:
@@ -219,7 +219,7 @@ public class ObjectService implements INetworkDispatch {
|
||||
object.setAttachment("serverTemplate", ((customServerTemplate != null) ? customServerTemplate : object.getTemplate()));
|
||||
|
||||
object.setisInSnapshot(isSnapshot);
|
||||
//loadServerTemplate(object);
|
||||
loadServerTemplate(object);
|
||||
|
||||
objectList.put(objectID, object);
|
||||
|
||||
@@ -572,32 +572,6 @@ public class ObjectService implements INetworkDispatch {
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
objControllerOpcodes.put(ObjControllerOpcodes.USE_OBJECT, new INetworkRemoteEvent() {
|
||||
|
||||
@Override
|
||||
public void handlePacket(IoSession session, IoBuffer buffer) throws Exception {
|
||||
buffer.order(ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
CreatureObject creature = (CreatureObject) getObject(buffer.getLong());
|
||||
|
||||
if (creature == null || creature.getClient() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
buffer.skip(4);
|
||||
|
||||
SWGObject object = getObject(buffer.getLong());
|
||||
|
||||
if (object == null) {
|
||||
return;
|
||||
}
|
||||
useObject(creature, object);
|
||||
}
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
|
||||
Reference in New Issue
Block a user