Revert main branch

This commit is contained in:
Daniel Grigencha
2024-10-02 13:30:55 +02:00
parent 3a2f20e45c
commit ef16a3f92b

View File

@@ -10,7 +10,6 @@
import pp.battleship.notification.GameEvent;
import pp.battleship.notification.GameEventBroker;
import pp.battleship.notification.ItemAddedEvent;
import pp.battleship.notification.ItemRemovedEvent;
import java.util.ArrayList;
import java.util.Collections;
@@ -98,7 +97,7 @@ public void add(Shot shot) {
*/
public void remove(Item item) {
items.remove(item);
notifyListeners(new ItemRemovedEvent(item, this));
notifyListeners(new ItemAddedEvent(item, this));
}
/**