mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed a container limit bug
This commit is contained in:
@@ -697,6 +697,8 @@ public class TangibleObject extends SWGObject implements Serializable {
|
||||
|
||||
int containerVolumeLimit = (int)getTemplateData().getAttribute("containerVolumeLimit") >> 8; // Shifting because it seems to be returning an extra byte before it should
|
||||
|
||||
if(containerVolumeLimit == 0) return false;
|
||||
|
||||
if(NGECore.getInstance().objectService.objsInContainer(this, this) >= containerVolumeLimit) return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user