Skip to content

Commit 0412bca

Browse files
authored
fixed errors!
1 parent fbe48dc commit 0412bca

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
import net.minecraft.util.Identifier;
4343
import net.minecraft.world.GameMode;
4444

45-
import java.io.IOException;
45+
import java.io.*;
46+
import java.net.*;
4647
import java.nio.file.Files;
4748
import java.nio.file.Path;
4849
import java.text.SimpleDateFormat;
@@ -118,7 +119,7 @@ public enum ScriptActionType {
118119
ctx.variable("Variable").name(),
119120
ctx.value("Value")
120121
))),
121-
122+
122123
GET_REQUEST(builder -> builder.name("Get Webrequest")
123124
.description("Makes a get request to the internet.")
124125
.icon(Items.GRASS_BLOCK)
@@ -936,7 +937,7 @@ public enum ScriptActionType {
936937
String text = ctx.value("Text").asText();
937938
ctx.task().context().setVariable(ctx.variable("Result").name(), new ScriptNumberValue(text.length()));
938939
})),
939-
940+
940941
READ_FILE(builder -> builder.name("Read File")
941942
.description("Reads a file from the scripts folder.")
942943
.icon(Items.WRITTEN_BOOK)
@@ -1256,7 +1257,7 @@ public enum ScriptActionType {
12561257
OverlayManager.getInstance().add("Unable to set text field value! (Unknown menu type)");
12571258
}
12581259
})),
1259-
1260+
12601261
RANDOM_INT(builder -> builder.name("Random Int")
12611262
.description("Generates a random whole number between two other numbers.")
12621263
.icon(Items.HOPPER)
@@ -1291,7 +1292,7 @@ public enum ScriptActionType {
12911292
new ScriptNumberValue(result)
12921293
);
12931294
})),
1294-
1295+
12951296
RANDOM_NUMBER(builder -> builder.name("Random Number")
12961297
.description("Generates a random number between two other numbers.")
12971298
.icon(Items.HOPPER)

0 commit comments

Comments
 (0)