This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- JSON parser code for the Minetest Mesecons Luacontroller | |
-- License: CC0 1.0 Universal (public domain) | |
-- Based on https://gist.github.com/tylerneylon/59f4bcf316be525b30ab | |
-- Rewritten by OgelGames to work in the restricted Luacontroller sandbox | |
-- Designed to be copy-pasted into a standalone Luacontroller | |
if event.type ~= "digiline" or event.channel ~= "json" then | |
return |