mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Clean up of code
Cleaned up some classes Moved functionalities into more appropriate methods/classes
This commit is contained in:
@@ -333,6 +333,13 @@ public class ResourceContainerObject extends TangibleObject {
|
||||
if (isNewContainer)
|
||||
this.stackCount = stackCount;
|
||||
}
|
||||
|
||||
public void setStackCount(int stackCount,CreatureObject owner) {
|
||||
this.stackCount = stackCount;
|
||||
this.getAttributes().put("@obj_attr_n:resource_contents", this.getStackCount()+"/"+maximalStackCapacity);
|
||||
if (stackCount>0)
|
||||
this.sendDelta3(owner.getClient());
|
||||
}
|
||||
|
||||
public short getColdResistance() {
|
||||
return coldResistance;
|
||||
|
||||
Reference in New Issue
Block a user