Skip to content

Commit c197311

Browse files
added double type
1 parent 3c1dd6a commit c197311

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/org/ironchefpython/modapi/JsModManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public enum Primitive implements DynamicProperty {
1818
COLOR(String.class),
1919
FUNCTION(Callable.class),
2020
TEXTURE(String.class),
21+
DOUBLE(double.class),
2122
;
2223

2324
private final Class<?> type;

test/org/ironchefpython/rhinodemo/ModTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.IOException;
44

55
import org.ironchefpython.modapi.JsModManager;
6+
import org.ironchefpython.modapi.ModRegistry;
67
import org.junit.Test;
78

89

@@ -16,8 +17,8 @@ public static void main(String[] args) throws IOException {
1617
public void mockTest() throws IOException {
1718

1819

19-
20-
JsModManager mm = new JsModManager("test");
20+
ModRegistry registry = new ModRegistry();
21+
JsModManager mm = new JsModManager(registry, "test");
2122

2223
mm.runScript(ModTest.class.getResourceAsStream("testmod.js"), "testmod.js");
2324

0 commit comments

Comments
 (0)