mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixes appearance inventory overload
Appearance items can now be correctly equipped after server restart/relog.
This commit is contained in:
@@ -602,10 +602,9 @@ public class TangibleObject extends SWGObject implements Serializable {
|
||||
return false;
|
||||
|
||||
int containerVolumeLimit = (int) getTemplateData().getAttribute("containerVolumeLimit");
|
||||
|
||||
if (containerVolumeLimit == 0 || getTemplate() == "object/tangible/inventory/shared_appearance_inventory.iff") // appearance inventory - issue #755
|
||||
System.out.println("containerVolumeLimit " +containerVolumeLimit);
|
||||
if (containerVolumeLimit == 0 || getTemplate().equals("object/tangible/inventory/shared_appearance_inventory.iff")) // appearance inventory - issue #755 String equality vs String identity ...
|
||||
return false;
|
||||
|
||||
|
||||
if (NGECore.getInstance().objectService.objsInContainer(this, this) >= containerVolumeLimit)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user