mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-10 01:50:29 +01:00
Localize punchpos var
This commit is contained in:
parent
02acad209b
commit
59cf898ddc
2
init.lua
2
init.lua
@ -1002,7 +1002,7 @@ S("The node HUD is not updated automatically and may be outdated. The node HUD o
|
|||||||
-- within the creator's region.
|
-- within the creator's region.
|
||||||
local use_creator_region = false
|
local use_creator_region = false
|
||||||
if pointed_thing and pointed_thing.type == "node" and pointed_thing.under then
|
if pointed_thing and pointed_thing.type == "node" and pointed_thing.under then
|
||||||
punchpos = pointed_thing.under
|
local punchpos = pointed_thing.under
|
||||||
local node = minetest.get_node(punchpos)
|
local node = minetest.get_node(punchpos)
|
||||||
if node.name == "schemedit:creator" then
|
if node.name == "schemedit:creator" then
|
||||||
local pos1, pos2 = schemedit.size(punchpos)
|
local pos1, pos2 = schemedit.size(punchpos)
|
||||||
|
Loading…
Reference in New Issue
Block a user