Fix effect manager

This commit is contained in:
Daniel Mills 2021-08-08 08:00:35 -04:00
parent df05ade4a7
commit 7f2d781241

View File

@ -51,13 +51,9 @@ public class IrisEngineEffects extends EngineAssignedComponent implements Engine
for (Player i : pr) { for (Player i : pr) {
Location l = i.getLocation(); Location l = i.getLocation();
boolean pcc = players.containsKey(i.getUniqueId()); boolean pcc = players.containsKey(i.getUniqueId());
if (getEngine().contains(l)) {
if (!pcc) { if (!pcc) {
players.put(i.getUniqueId(), new EnginePlayer(getEngine(), i)); players.put(i.getUniqueId(), new EnginePlayer(getEngine(), i));
} }
} else if (pcc) {
players.remove(i.getUniqueId());
}
} }
for (UUID i : players.k()) { for (UUID i : players.k()) {