9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

clean: better for loop

This commit is contained in:
LoJoSho
2023-08-01 13:03:14 -05:00
parent 5696039799
commit 8c2c6db81b

View File

@@ -112,8 +112,8 @@ public class UserBackpackManager {
this.invisibleArmorStand = null;
}
if (particleCloud != null) {
for (int i = 0; i < particleCloud.size(); i++) {
PacketManager.sendEntityDestroyPacket(particleCloud.get(i), getCloudManager().getViewers());
for (Integer entityId : particleCloud) {
PacketManager.sendEntityDestroyPacket(entityId, getCloudManager().getViewers());
}
this.particleCloud = null;
}