mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
fixed another forward declaration issue
This commit is contained in:
parent
e4a65e99d0
commit
727859b5e6
|
@ -76,6 +76,15 @@ local function forceload_on(pos, meta)
|
|||
end
|
||||
technic.forceload_on_flposes = forceload_on_flposes
|
||||
|
||||
-- computes the forceload positions (using compute_forceload_positions) and tries to force load all of them, and records them in meta "forceloaded"
|
||||
-- pos - position of the anchor node
|
||||
-- meta - contains "radius" (to be read) and "forceloaded" (to be written)
|
||||
local function forceload_on(pos, meta)
|
||||
local want_flposes = compute_forceload_positions(pos, meta)
|
||||
forceload_on_flposes(want_flposes, meta)
|
||||
return
|
||||
end
|
||||
|
||||
local function set_display(pos, meta)
|
||||
meta:set_string("infotext", S(meta:get_int("enabled") ~= 0 and "%s Enabled" or "%s Disabled"):format(desc))
|
||||
meta:set_string("formspec",
|
||||
|
|
Loading…
Reference in New Issue
Block a user