Add some license stuff

master
PilzAdam 2013-04-21 23:55:53 +02:00
parent 40c0a4df04
commit b4d9ff968f
2 changed files with 3 additions and 1 deletions

View File

@ -94,5 +94,5 @@ Currently supported commands are:
License
-------
Sourcecode: WTFPL
Sourcecode: WTFPL (parts by Uberi: AGPL)
Textures: WTFPL

View File

@ -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