From 8d638158e482a8b834f096a5a6e5667cd4aef37a Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 3 Dec 2024 12:15:00 +0100 Subject: [PATCH] fixed Miete popup --- .../main/java/pp/monopoly/game/server/Player.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java index b8c2209..7de49b7 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java @@ -347,8 +347,8 @@ public class Player implements FieldVisitor{ int rent = field.calcRent(); field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("rent", field.getOwner(), rent); - sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("ReceivedRent", field.getOwner(), rent); + sendRentNotification("rent", this, rent); } return null; } @@ -365,8 +365,8 @@ public class Player implements FieldVisitor{ int rent = rollResult.calcTotal()*factor; field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("rent", field.getOwner(), rent); - sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("ReceivedRent", field.getOwner(), rent); + sendRentNotification("rent", this, rent); } return null; } @@ -380,8 +380,8 @@ public class Player implements FieldVisitor{ field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("rent", field.getOwner(), rent); - sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("ReceivedRent", field.getOwner(), rent); + sendRentNotification("rent", this, rent); } return null; }