mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-04 19:12:50 -04:00
Fixed references to getEquipmentList - might fix crashing
This commit is contained in:
@@ -1213,7 +1213,7 @@ public class PlayerService implements INetworkDispatch {
|
||||
// need to set a unity attachment.
|
||||
ringList.get(0).setAttachment("unity", (Boolean) true);
|
||||
|
||||
if(!acceptor.getEquipmentList().contains(ringList.get(0)))
|
||||
if(!acceptor.getEquipmentList().contains(ringList.get(0).getObjectId()))
|
||||
core.equipmentService.equip(acceptor, ringList.get(0));
|
||||
|
||||
aGhost.setSpouseName(proposer.getCustomName());
|
||||
@@ -1248,7 +1248,7 @@ public class PlayerService implements INetworkDispatch {
|
||||
SWGObject selectedRing = core.objectService.getObject(ringWindow.getObjectIdByIndex(index));
|
||||
selectedRing.setAttachment("unity", (Boolean) true);
|
||||
|
||||
if(!actor.getEquipmentList().contains(selectedRing))
|
||||
if(!actor.getEquipmentList().contains(selectedRing.getObjectId()))
|
||||
core.equipmentService.equip(actor, selectedRing);
|
||||
|
||||
PlayerObject aGhost = (PlayerObject) actor.getSlottedObject("ghost");
|
||||
|
||||
Reference in New Issue
Block a user