summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-09-17 12:38:29 -0400
committerShadowNinja <noreply@gmail.com>2013-09-17 12:38:29 -0400
commitad04e7b5f692a8ff1910e35d3f4efcabaecebc60 (patch)
tree675193e356a7e865513d5f10206c5847ebb32215
parentd026b42a79acd6bba1f43600b8659c0ad5597283 (diff)
Fix license, add comment about owner_defs support
-rw-r--r--init.lua2
-rw-r--r--legacy.lua6
2 files changed, 5 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 35737fd..1db410f 100644
--- a/init.lua
+++ b/init.lua
@@ -1,6 +1,6 @@
-- Areas mod by ShadowNinja
-- Based on node_ownership
--- License: GPLv2+
+-- License: LGPLv2+
areas = {}
diff --git a/legacy.lua b/legacy.lua
index 135e6dd..4a86398 100644
--- a/legacy.lua
+++ b/legacy.lua
@@ -8,7 +8,7 @@ minetest.register_chatcommand("legacy_load_areas", {
privs = {areas=true, server=true, privs=true},
func = function(name, param)
minetest.chat_send_player(name, "Converting areas...")
- err = areas:legacy_load()
+ err = areas:node_ownership_load()
if err then
minetest.chat_send_player(name, "Error loading legacy file: "..err)
return
@@ -39,7 +39,8 @@ minetest.register_chatcommand("legacy_load_areas", {
end})
-- The old load function from node_ownership (with minor modifications)
-function areas:legacy_load()
+-- Licensed GPLv2 as it is only slightly modified.
+function areas:node_ownership_load()
local filename = minetest.get_worldpath().."/owners.tbl"
tables, err = loadfile(filename)
if err then
@@ -106,6 +107,7 @@ IsPlayerNodeOwner = areas.isNodeOwner
GetNodeOwnerName = areas.getNodeOwnerName
HasOwner = areas.hasOwner
+-- This is entirely untested and may break in strange and new ways.
if areas.legacy_table then
owner_defs = {}
setmetatable(owner_defs, {