This commit is contained in:
Alexander Novotny 2024-04-27 20:53:38 -04:00 committed by GitHub
parent d645facdc0
commit 8771d9b7f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -415,7 +415,10 @@ public class HumanPlayer extends PlayerImpl {
} }
if (source != null) { if (source != null) {
//options.put(Constants.Option.ORIGINAL_ID, "") //options.put(Constants.Option.ORIGINAL_ID, "")
autoAnswerMessage = autoAnswerMessage.replace(getRelatedObjectName(source, game), "{this}"); String sourceName = getRelatedObjectName(source, game);
if (sourceName != null) {
autoAnswerMessage = autoAnswerMessage.replace(sourceName, "{this}");
}
} }
options.put(Constants.Option.AUTO_ANSWER_MESSAGE, autoAnswerMessage); options.put(Constants.Option.AUTO_ANSWER_MESSAGE, autoAnswerMessage);