diff --git a/src/resources/objects/tangible/TangibleObject.java b/src/resources/objects/tangible/TangibleObject.java index 41d555ec..70c5957e 100644 --- a/src/resources/objects/tangible/TangibleObject.java +++ b/src/resources/objects/tangible/TangibleObject.java @@ -570,20 +570,18 @@ public class TangibleObject extends SWGObject implements Serializable { } public boolean isFull() { - if (getTemplateData().getAttribute("containerVolumeLimit") == null) { + if (getTemplateData().getAttribute("containerVolumeLimit") == null) return false; - } int containerVolumeLimit = (int) getTemplateData().getAttribute("containerVolumeLimit") >> 8; // Shifting because it seems to be returning an extra byte before it should - if (containerVolumeLimit == 0) { + if (containerVolumeLimit == 0 || getTemplate() == "object/tangible/inventory/shared_appearance_inventory.iff") // appearance inventory - issue #755 return false; - } + - if (NGECore.getInstance().objectService.objsInContainer(this, this) >= containerVolumeLimit) { + if (NGECore.getInstance().objectService.objsInContainer(this, this) >= containerVolumeLimit) return true; - } - + return false; }