mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-16 19:51:35 +01:00
Make EntityTrackerBase#clearEntities call removeEntity for all entries (#4142)
This commit is contained in:
parent
ebc0e61be8
commit
e0ce8cc715
@ -95,7 +95,10 @@ public class EntityTrackerBase implements EntityTracker, ClientEntityIdChangeLis
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void clearEntities() {
|
public void clearEntities() {
|
||||||
entities.clear();
|
// Call wrapper function in case protocols need to do additional removals
|
||||||
|
for (final int id : entities.keySet().toIntArray()) {
|
||||||
|
removeEntity(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user