add type to raw iterator

This commit is contained in:
Esmorall 2019-09-02 21:20:31 -03:00
parent 90b5d50841
commit a7911a491a
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ public class UntrackerTask extends BukkitRunnable {
int removed = 0;
WorldServer ws = ((CraftWorld)Bukkit.getWorld(worldName)).getHandle();
ChunkProviderServer cps = ws.getChunkProvider();
@SuppressWarnings("rawtypes")
ObjectIterator objectiterator = cps.playerChunkMap.trackedEntities.values().iterator();
ObjectIterator<EntityTracker> objectiterator = cps.playerChunkMap.trackedEntities.values().iterator();
try {
while (objectiterator.hasNext()) {
Object iterobj = objectiterator.next();