diff options
author | ShadowNinja <noreply@gmail.com> | 2013-09-17 12:38:29 -0400 |
---|---|---|
committer | ShadowNinja <noreply@gmail.com> | 2013-09-17 12:38:29 -0400 |
commit | ad04e7b5f692a8ff1910e35d3f4efcabaecebc60 (patch) | |
tree | 675193e356a7e865513d5f10206c5847ebb32215 | |
parent | d026b42a79acd6bba1f43600b8659c0ad5597283 (diff) |
Fix license, add comment about owner_defs support
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | legacy.lua | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,6 @@ -- Areas mod by ShadowNinja -- Based on node_ownership --- License: GPLv2+ +-- License: LGPLv2+ areas = {} @@ -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, { |