Changed SWGNameGenerator to use StringBuffer for name generation and fixed some small issues in other classes

This commit is contained in:
Waverunner
2015-06-19 16:55:24 -04:00
parent 754bd804ff
commit 2ff79ceef8
6 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -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];