diff --git a/README.txt b/README.txt index 72ec430..8003720 100644 --- a/README.txt +++ b/README.txt @@ -94,5 +94,5 @@ Currently supported commands are: License ------- -Sourcecode: WTFPL +Sourcecode: WTFPL (parts by Uberi: AGPL) Textures: WTFPL diff --git a/init.lua b/init.lua index c7aaf99..4f7c6cb 100644 --- a/init.lua +++ b/init.lua @@ -1143,6 +1143,7 @@ minetest.register_chatcommand("load", { --wpp.data[playername].nodes = minetest.deserialize(content) --HACK by Uberi + -- License: AGPL 3.0 content = content:gsub("return%s*{", "", 1):gsub("}%s*$", "", 1) local escaped = content:gsub("\\\\", "@@"):gsub("\\\"", "@@"):gsub("(\"[^\"]+\")", function(s) return string.rep("@", #s) end) wpp.data[playername].nodes = {} @@ -1156,6 +1157,7 @@ minetest.register_chatcommand("load", { table.insert(wpp.data[playername].nodes, minetest.deserialize("return " .. current)) startpos, startpos1 = endpos, endpos end + -- END HACK by Uberi file:close() if not wpp.data[playername].nodes then