Skip to content

Commit 51c2754

Browse files
committed
fixed like 2 description issues
also as per RedCommand_'s request, I added the migration of RANDOM_NUMBER to RANDOM_DOUBLE
1 parent 84b0ffc commit 51c2754

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/main/java/io/github/techstreet/dfscript/script/ScriptMigrator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static void migrate(Script script) {
2525

2626
if (script.getVersion() == 3) {
2727
script.replaceAction(ScriptActionType.SPLIT_TEXT, ScriptActionType.REGEX_SPLIT_TEXT);
28+
script.replaceAction(ScriptActionType.RANDOM_NUMBER, ScriptActionType.RANDOM_DOUBLE);
2829

2930
script.setVersion(4);
3031
}

src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ public enum ScriptActionType {
17591759
})),
17601760

17611761
REMOVE_TEXT(builder -> builder.name("Remove Text")
1762-
.description("Searches for part of a text and replaces it.")
1762+
.description("Searches for part of a text and removes it.")
17631763
.icon(Items.WRITABLE_BOOK)
17641764
.arg("Result", ScriptActionArgumentType.VARIABLE)
17651765
.arg("Text to change", ScriptActionArgumentType.TEXT)

src/main/java/io/github/techstreet/dfscript/script/options/ScriptOptionEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public enum ScriptOptionEnum {
1717
TEXT("Text Option", "A single option, no checks.", Items.BOOK, ScriptTextOption.class),
1818
INT("Integer Option", "A single option, must be an int.", Items.SLIME_BALL, ScriptIntOption.class),
1919
FLOAT("Floating-Point Option", "A single option, must be an int or a float.", Items.SLIME_BLOCK, ScriptFloatOption.class),
20-
KEY("Key Option", "A single option, must be an int or a float.", Items.STONE_BUTTON, ScriptKeyOption.class);
20+
KEY("Key Option", "A single option, acts as a key bind.", Items.STONE_BUTTON, ScriptKeyOption.class);
2121

2222
String name;
2323
String description;

0 commit comments

Comments
 (0)