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