From c1d99d36f85db5f20fcddb3f1e2c7ffe963ca1c6 Mon Sep 17 00:00:00 2001 From: Ziggeh Date: Thu, 21 May 2015 20:35:51 +0200 Subject: [PATCH] Added functionality for equipping items --- src/resources/objects/SWGObject.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resources/objects/SWGObject.java b/src/resources/objects/SWGObject.java index cd2acd74b..23f02fa7d 100644 --- a/src/resources/objects/SWGObject.java +++ b/src/resources/objects/SWGObject.java @@ -118,6 +118,8 @@ public class SWGObject implements Serializable, Comparable { child.containmentType = 4; else child.containmentType = containmentType.intValue(); + + sendObserversAndSelf(new UpdateContainmentMessage(child.objectId, objectId, containmentType)); // TODO: Set containmentType based on if object is in a slot (4) or a container (-1) } @@ -167,6 +169,7 @@ public class SWGObject implements Serializable, Comparable { for (String availSlot : occupiedAvailSlots) { obj.setParent(this); addObjectSlot(availSlot, obj); + sendObserversAndSelf(new UpdateContainmentMessage(obj.objectId, objectId, containmentType)); } return true;