mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-10 00:13:05 -04:00
Fixed major counter-type collection bugs
This commit is contained in:
@@ -80,6 +80,20 @@ public class Stf extends Delta {
|
||||
}
|
||||
}
|
||||
|
||||
public String getString() {
|
||||
synchronized(objectMutex) {
|
||||
return ("@" + stfFilename + ":" + stfName);
|
||||
}
|
||||
}
|
||||
|
||||
public void setString(String stf) {
|
||||
synchronized(objectMutex) {
|
||||
stf = stf.replace("@", "");
|
||||
stfFilename.set(stf.split(":")[0]);
|
||||
stfName.set(stf.split(":")[1]);
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] getBytes() {
|
||||
synchronized(objectMutex) {
|
||||
int size = stfFilename.getBytes().length + 4 + stfName.getBytes().length;
|
||||
|
||||
Reference in New Issue
Block a user