Skip to content

Commit 7029b53

Browse files
committed
Make config and client values use their name
1 parent f747652 commit 7029b53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/github/techstreet/dfscript/screen/script/ScriptEditActionScreen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public boolean mouseClicked(double x, double y, int button) {
8585
if (button == 0) {
8686
ScriptArgument argument = action.getArguments().get(currentIndex);
8787
String value = "~";
88+
if(argument instanceof ScriptClientValueArgument clientValue) value = clientValue.getName();
89+
if(argument instanceof ScriptConfigArgument configArgument) value = configArgument.getName();
8890
if(argument instanceof ScriptNumberArgument number) value = String.valueOf(number.value());
8991
if(argument instanceof ScriptTextArgument text) value = text.value();
9092
if(argument instanceof ScriptVariableArgument var) value = var.name();

0 commit comments

Comments
 (0)