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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user