mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 23:36:52 +00:00
Fix effect manager
This commit is contained in:
1 parent
df05ade4a7
commit
7f2d781241
1 file changed
+2
-6
@@ -51,12 +51,8 @@ public class IrisEngineEffects extends EngineAssignedComponent implements Engine
|
||||
for (Player i : pr) {
|
||||
Location l = i.getLocation();
|
||||
boolean pcc = players.containsKey(i.getUniqueId());
|
||||
if (getEngine().contains(l)) {
|
||||
if (!pcc) {
|
||||
players.put(i.getUniqueId(), new EnginePlayer(getEngine(), i));
|
||||
}
|
||||
} else if (pcc) {
|
||||
players.remove(i.getUniqueId());
|
||||
if (!pcc) {
|
||||
players.put(i.getUniqueId(), new EnginePlayer(getEngine(), i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user