From d6dc3db62ecc77af3581cd532eaae3cb7ea44e90 Mon Sep 17 00:00:00 2001 From: APickledWalrus Date: Sat, 7 Aug 2021 17:03:34 -0400 Subject: [PATCH] Fix incorrect ending dash with ExprRawName (#4193) --- src/main/java/ch/njol/skript/aliases/AliasesProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ch/njol/skript/aliases/AliasesProvider.java b/src/main/java/ch/njol/skript/aliases/AliasesProvider.java index 499d3cfea24..9d591885293 100644 --- a/src/main/java/ch/njol/skript/aliases/AliasesProvider.java +++ b/src/main/java/ch/njol/skript/aliases/AliasesProvider.java @@ -95,11 +95,11 @@ public int getInsertPoint() { @Nullable public String insertId(@Nullable String inserted) { - if (id == null) // Inserting to nothing - return inserted; - if (inserted == null) + if (inserted == null) // Nothing to insert return id; inserted = inserted.substring(0, inserted.length() - 1); // Strip out - + if (id == null) // Inserting to nothing + return inserted; String id = this.id; assert id != null;