mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-17 07:02:54 -04:00
Changed SWGNameGenerator to use StringBuffer for name generation and fixed some small issues in other classes
This commit is contained in:
@@ -478,7 +478,7 @@ public abstract class SWGObject implements Serializable, Comparable<SWGObject> {
|
||||
}
|
||||
|
||||
public int getMaxContainerSize() {
|
||||
return Integer.valueOf(templateAttributes.get("containerVolumeLimit").toString());
|
||||
return Integer.parseInt(templateAttributes.get("containerVolumeLimit").toString());
|
||||
}
|
||||
|
||||
public void setBuildout(boolean buildout) {
|
||||
|
||||
@@ -133,7 +133,7 @@ public class WeaponObject extends TangibleObject implements Encodable{
|
||||
byte[] data3 = bb.buildAsBaselinePacket();
|
||||
|
||||
bb = new BaselineBuilder(this, BaselineType.WEAO, 6);
|
||||
createBaseline6(null, bb);
|
||||
createBaseline6(null, bb); // TODO: This needs to have a target otherwise null pointer will be thrown, new encode function in encodable?
|
||||
byte[] data6 = bb.buildAsBaselinePacket();
|
||||
|
||||
byte[] ret = new byte[data3.length + data6.length];
|
||||
|
||||
Reference in New Issue
Block a user