From 444cf9db4ebe295a97ccd0ce3b3124bd2245d97c Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Thu, 12 Dec 2024 16:13:50 +0100 Subject: [PATCH] fixed names in Player Popups --- .../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 4badf81..2ca9153 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 @@ -351,8 +351,8 @@ public class Player implements FieldVisitor{ int rent = field.calcRent(); field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("ReceivedRent", field.getOwner(), rent); - sendRentNotification("rent", this, rent); + sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("rent", field.getOwner(), rent); } return null; } @@ -369,8 +369,8 @@ public class Player implements FieldVisitor{ int rent = rollResult.calcTotal()*factor; field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("ReceivedRent", field.getOwner(), rent); - sendRentNotification("rent", this, rent); + sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("rent", field.getOwner(), rent); } return null; } @@ -384,8 +384,8 @@ public class Player implements FieldVisitor{ field.getOwner().earnMoney(rent); pay(rent); - sendRentNotification("ReceivedRent", field.getOwner(), rent); - sendRentNotification("rent", this, rent); + sendRentNotification("ReceivedRent", this, rent); + sendRentNotification("rent", field.getOwner(), rent); } return null; }