reverted commit 35f154aa

This commit is contained in:
Johannes Schmelz 2024-10-06 18:33:20 +02:00
parent 50bee91775
commit 4cf14d02ee

View File

@ -105,9 +105,7 @@ public class ShipMap {
* Removes all items from the map and triggers corresponding removal events for each.
*/
public void clear() {
while (!items.isEmpty()) {
notifyListeners(new ItemRemovedEvent(items.removeFirst(), this));
}
new ArrayList<>(items).forEach(this::remove);
}
/**