fixed Miete popup

This commit is contained in:
Johannes Schmelz 2024-12-03 12:15:00 +01:00
parent 1f37eb9962
commit 8d638158e4

View File

@ -347,8 +347,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("rent", field.getOwner(), rent); sendRentNotification("ReceivedRent", field.getOwner(), rent);
sendRentNotification("ReceivedRent", this, rent); sendRentNotification("rent", this, rent);
} }
return null; return null;
} }
@ -365,8 +365,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("rent", field.getOwner(), rent); sendRentNotification("ReceivedRent", field.getOwner(), rent);
sendRentNotification("ReceivedRent", this, rent); sendRentNotification("rent", this, rent);
} }
return null; return null;
} }
@ -380,8 +380,8 @@ public class Player implements FieldVisitor<Void>{
field.getOwner().earnMoney(rent); field.getOwner().earnMoney(rent);
pay(rent); pay(rent);
sendRentNotification("rent", field.getOwner(), rent); sendRentNotification("ReceivedRent", field.getOwner(), rent);
sendRentNotification("ReceivedRent", this, rent); sendRentNotification("rent", this, rent);
} }
return null; return null;
} }