Merge pull request 'Fix Tracer Warning' (#111) from simplify-tracer into master
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
8d704e264c
@ -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