9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00
This commit is contained in:
Catnies
2025-10-26 16:05:35 +08:00
parent b109081535
commit f91ebafda9

View File

@@ -26,7 +26,7 @@ public class PlaceholderTag implements TagResolver {
String rawArgument = arguments.popOr("No argument relational placeholder provided").toString();
if (rawArgument.contains("<")) rawArgument = AdventureHelper.resolvePlainStringTags(rawArgument, this.context.tagResolvers());
String placeholder = "%" + rawArgument + "%";
String parsed = (this.context instanceof PlayerContext playerContext) && playerContext.player() != null
String parsed = (this.context instanceof PlayerContext playerContext)
? CraftEngine.instance().compatibilityManager().parse(playerContext.player(), placeholder)
: CraftEngine.instance().compatibilityManager().parse(null, placeholder);
if (parsed.equals(placeholder)) {