mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix some more issues.
- Fix issue where avatars would get mixed up or assigned randomly
- Fix issue where "{player's}" would display rather than name when revealing cards in hand
This commit is contained in:
@@ -19,7 +19,7 @@ public class MessageUtil {
|
||||
}
|
||||
|
||||
public static String formatMessage(String message, PlayerView player, Object related) {
|
||||
if (related instanceof Player && message.indexOf("{player") >= 0) {
|
||||
if (related instanceof PlayerView && message.indexOf("{player") >= 0) {
|
||||
String noun = mayBeYou(player, related);
|
||||
message = message.replace("{player}", noun).replace("{player's}", Lang.getPossesive(noun));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user