fixed names in Player Popups

This commit is contained in:
Johannes Schmelz 2024-12-12 16:13:50 +01:00
parent df4a81cbf2
commit 444cf9db4e

View File

@ -351,8 +351,8 @@ public class Player implements FieldVisitor<Void>{
int rent = field.calcRent(); int rent = field.calcRent();
field.getOwner().earnMoney(rent); field.getOwner().earnMoney(rent);
pay(rent); pay(rent);
sendRentNotification("ReceivedRent", field.getOwner(), rent); sendRentNotification("ReceivedRent", this, rent);
sendRentNotification("rent", this, rent); sendRentNotification("rent", field.getOwner(), rent);
} }
return null; return null;
} }
@ -369,8 +369,8 @@ public class Player implements FieldVisitor<Void>{
int rent = rollResult.calcTotal()*factor; int rent = rollResult.calcTotal()*factor;
field.getOwner().earnMoney(rent); field.getOwner().earnMoney(rent);
pay(rent); pay(rent);
sendRentNotification("ReceivedRent", field.getOwner(), rent); sendRentNotification("ReceivedRent", this, rent);
sendRentNotification("rent", this, rent); sendRentNotification("rent", field.getOwner(), rent);
} }
return null; return null;
} }
@ -384,8 +384,8 @@ public class Player implements FieldVisitor<Void>{
field.getOwner().earnMoney(rent); field.getOwner().earnMoney(rent);
pay(rent); pay(rent);
sendRentNotification("ReceivedRent", field.getOwner(), rent); sendRentNotification("ReceivedRent", this, rent);
sendRentNotification("rent", this, rent); sendRentNotification("rent", field.getOwner(), rent);
} }
return null; return null;
} }