Fixed a container limit bug

This commit is contained in:
Seefo
2014-05-11 12:42:40 -04:00
parent bc25be3bed
commit c47ddf77df
4 changed files with 17 additions and 12 deletions
@@ -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;