mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed #755
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user