From e343074240d4a320716d5336ab728f1472694fad Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sat, 5 Oct 2024 13:14:20 +0200 Subject: [PATCH] fixed remove --- .../model/src/main/java/pp/battleship/model/ShipMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projekte/battleship/model/src/main/java/pp/battleship/model/ShipMap.java b/Projekte/battleship/model/src/main/java/pp/battleship/model/ShipMap.java index 0422616..dfab415 100644 --- a/Projekte/battleship/model/src/main/java/pp/battleship/model/ShipMap.java +++ b/Projekte/battleship/model/src/main/java/pp/battleship/model/ShipMap.java @@ -98,7 +98,7 @@ public class ShipMap { */ public void remove(Item item) { items.remove(item); - notifyListeners(new ItemAddedEvent(item, this)); + notifyListeners(new ItemRemovedEvent(item, this)); } /**