Skip to content

Commit

Permalink
Made LuaJava inaccessible. Fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Sep 10, 2014
1 parent 4bae902 commit c8b0d03
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -33,6 +33,8 @@ public Events(final InputStream inputStream) {
InputStreamReader reader = new InputStreamReader(inputStream);
globals.load(reader, "mainScript").call();
LuaJC.install(globals);
globals.set("luajava", "Access Denied");

try {
reader.close();
} catch (IOException e) {
Expand All @@ -57,7 +59,6 @@ public Zone zoneMove(final Card card, final Zone source, final Zone destination)
*/
public void startGame(final Game game) {
globals.set("gadsame", CoerceJavaToLua.coerce(game));

// globals.load(new StringReader(codeTextArea.getText()), "interopTest").call();
LuaValue applyFunction = globals.get("startGame");
Varargs applyFunctionResult = applyFunction.invoke(CoerceJavaToLua.coerce(game));
Expand Down

0 comments on commit c8b0d03

Please sign in to comment.