mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
Update RotationHandler.java
Fix CME
This commit is contained in:
1 parent
883789cee4
commit
5f0546f9f1
1 file changed
+4
-1
@@ -1,6 +1,8 @@
|
||||
package com.github.alathra.siegeengines.listeners;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.github.alathra.siegeengines.SiegeEngines;
|
||||
import org.bukkit.Bukkit;
|
||||
@@ -35,7 +37,8 @@ public class RotationHandler implements Listener {
|
||||
|
||||
return;
|
||||
}
|
||||
for (Entity ent : SiegeEngines.TrackedStands.get(player.getUniqueId())) {
|
||||
final List<Entity> list = new ArrayList<>(SiegeEngines.TrackedStands.get(player.getUniqueId()));
|
||||
for (Entity ent : list) {
|
||||
if (ent != null) {
|
||||
SiegeEquipment equipment = SiegeEngines.equipment.get(ent.getUniqueId());
|
||||
if (ent.isDead()) {
|
||||
|
||||
Reference in new issue
Block a user