Fix dirty Flaging
Dieser Commit ist enthalten in:
Ursprung
7e5d690c9d
Commit
6f558b6b91
@ -1,6 +1,7 @@
|
||||
package de.steamwar.bausystem.tracer.trace;
|
||||
|
||||
import de.steamwar.bausystem.tracer.TNTTracer15;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.HashMap;
|
||||
@ -16,9 +17,9 @@ public class ShowManager {
|
||||
}
|
||||
|
||||
public static void dirty() {
|
||||
for (Map.Entry<Player, ShowStatus> entry : showMap.entrySet()) {
|
||||
if (entry.getValue().getShow() != ShowStatus.Show.NONE) {
|
||||
entry.getValue().dirty = true;
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (showMap.get(player).getShow() != ShowStatus.Show.NONE) {
|
||||
showMap.get(player).dirty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren