fixed another forward declaration issue

This commit is contained in:
Peter Maloney 2015-07-20 00:00:38 +02:00
parent e4a65e99d0
commit 727859b5e6

View File

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