Fix Tracer dirty Optimization
Dieser Commit ist enthalten in:
Ursprung
0b13700a3a
Commit
a581beee5c
@ -323,13 +323,13 @@ public class ShowManager {
|
|||||||
|
|
||||||
public static void traceRemove(int id) {
|
public static void traceRemove(int id) {
|
||||||
for (Map.Entry<String, ShowStatus> entry : showMap.entrySet()) {
|
for (Map.Entry<String, ShowStatus> entry : showMap.entrySet()) {
|
||||||
if (entry.getValue().showSelection == ShowSelection.ALL) {
|
entry.getValue().removeSelection(id);
|
||||||
entry.getValue().dirty = true;
|
}
|
||||||
}
|
}
|
||||||
if (entry.getValue().showSelection == ShowSelection.SELECTIVE) {
|
|
||||||
entry.getValue().dirty = true;
|
public static void globalDirty() {
|
||||||
entry.getValue().removeSelection(id);
|
for (Map.Entry<String, ShowStatus> entry : showMap.entrySet()) {
|
||||||
}
|
entry.getValue().dirty = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ public class TraceManager {
|
|||||||
try {
|
try {
|
||||||
remove(Integer.parseInt(args[1]));
|
remove(Integer.parseInt(args[1]));
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cTNT-Positionen mit ID " + args[1] + " gelöscht");
|
player.sendMessage(BauSystem.PREFIX + "§cTNT-Positionen mit ID " + args[1] + " gelöscht");
|
||||||
|
ShowManager.globalDirty();
|
||||||
return false;
|
return false;
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
return true;
|
return true;
|
||||||
@ -53,6 +54,7 @@ public class TraceManager {
|
|||||||
}
|
}
|
||||||
remove();
|
remove();
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cAlle TNT-Positionen gelöscht");
|
player.sendMessage(BauSystem.PREFIX + "§cAlle TNT-Positionen gelöscht");
|
||||||
|
ShowManager.globalDirty();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren