mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user