Fix Tracer Warning
Dieser Commit ist enthalten in:
Ursprung
9dd02f6c52
Commit
585c4e6960
@ -40,6 +40,7 @@ public class TraceListener implements Listener {
|
||||
TNTTrace trace;
|
||||
if (!tntMap.containsKey(tnt)) {
|
||||
trace = TraceManager.createTrace();
|
||||
if (trace == null) return;
|
||||
tntMap.put(tnt, trace);
|
||||
} else {
|
||||
trace = tntMap.get(tnt);
|
||||
|
@ -40,6 +40,7 @@ public class TraceManager {
|
||||
}
|
||||
|
||||
public static TNTTrace createTrace() {
|
||||
if (!frameMap.containsKey(currentFrame)) return null;
|
||||
TNTTrace trace = new TNTTrace(currentFrame);
|
||||
int id = generateID();
|
||||
traceMap.put(id, trace);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren