mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
This commit is contained in:
@@ -686,4 +686,15 @@ public class TangibleObject extends SWGObject implements Serializable {
|
||||
return messageBuilder;
|
||||
}
|
||||
|
||||
public boolean isFull()
|
||||
{
|
||||
if(getTemplateData().getAttribute("containerVolumeLimit") == null) return false;
|
||||
|
||||
int containerVolumeLimit = getTemplateData().getAttribute("containerVolumeLimit");
|
||||
|
||||
if(NGECore.getInstance().objectService.objsInContainer(this, this) >= containerVolumeLimit) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user