Rename mod: areas: tutorial_areas

This commit is contained in:
Wuzzy 2022-08-02 15:07:31 +02:00
parent 19dbfe5827
commit 29244f22d0
14 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
-- Areas mod by ShadowNinja -- Areas mod; original by ShadowNinja
-- Based on node_ownership -- Based on node_ownership
-- Stripped down for the tutorial -- Stripped down for the Tutorial
-- License: LGPLv2+ -- License: LGPLv2+
areas = {} areas = {}
@ -8,7 +8,7 @@ areas = {}
areas.adminPrivs = {areas=true} areas.adminPrivs = {areas=true}
areas.startTime = os.clock() areas.startTime = os.clock()
areas.modpath = minetest.get_modpath("areas") areas.modpath = minetest.get_modpath("tutorial_areas")
dofile(areas.modpath.."/api.lua") dofile(areas.modpath.."/api.lua")
dofile(areas.modpath.."/internal.lua") dofile(areas.modpath.."/internal.lua")
dofile(areas.modpath.."/hud.lua") dofile(areas.modpath.."/hud.lua")
@ -17,6 +17,6 @@ areas:load()
if minetest.settings:get_bool("log_mod") then if minetest.settings:get_bool("log_mod") then
local diffTime = os.clock() - areas.startTime local diffTime = os.clock() - areas.startTime
minetest.log("action", "Modified areas mod loaded in "..diffTime.."s.") minetest.log("action", "[tutorial_areas] Tutorial areas mod loaded in "..diffTime.."s.")
end end

View File

@ -1,6 +1,6 @@
-- Load the areas table from the save file -- Load the areas table from the save file
function areas:load() function areas:load()
local file, err = io.open(minetest.get_modpath("areas") .. "/areas.dat", "r") local file, err = io.open(minetest.get_modpath("tutorial_areas") .. "/areas.dat", "r")
if err then if err then
self.areas = self.areas or {} self.areas = self.areas or {}
return err return err

View File

@ -1,2 +1,2 @@
name = areas name = tutorial_areas
optional_depends = intllib optional_depends = intllib

View File

@ -1,2 +1,2 @@
name = tutorial_mapgen name = tutorial_mapgen
depends = tutorial, areas depends = tutorial, tutorial_areas