fix a crash
All checks were successful
/ Build BaseBand (push) Successful in 2m43s

This commit is contained in:
Daniella / Tove 2024-10-05 11:24:46 +02:00
parent 4e01c3e4e9
commit 6985663cbf
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ public class Ping extends Feature {
} }
@Override @Override
public void onTick() { public synchronized void onTick() {
while (true) { while (true) {
PacketHolder holder = this.holderSend.peek(); PacketHolder holder = this.holderSend.peek();
if(holder == null || !holder.passed()) if(holder == null || !holder.passed())
@ -75,7 +75,7 @@ public class Ping extends Feature {
} }
} }
public void onDisable() { public synchronized void onDisable() {
totalRecieved = 0; totalRecieved = 0;
totalSent = 0; totalSent = 0;
if(notIngame()) { if(notIngame()) {

View file

@ -69,7 +69,7 @@ public class Configuration {
} }
} }
if(fullDB.getSub("PlayerData") != null) if(fullDB.getSub("PlayerData") != null)
PlayerDB.Data.cloneFrom(fullDB.getSub("PlayerData")); PlayerDB.Data.cloneFrom(fullDB.getSub("PlayerData"));
} }
public static TCN asTCN() { public static TCN asTCN() {