aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes/textures/testnodes_light_3.png
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-03-20 13:02:15 +0100
committerGitHub <noreply@github.com>2021-03-20 13:02:15 +0100
commit05719913aca97e53ff5b1dde49e1a033a327551f (patch)
treee775880bc19a4fd53f3b85362c6dc49edb8d4453 /games/devtest/mods/testnodes/textures/testnodes_light_3.png
parenta8cc3bdb0890c89d600ef6543c5e9b1b55bcf2b6 (diff)
downloadminetest-05719913aca97e53ff5b1dde49e1a033a327551f.tar.gz
minetest-05719913aca97e53ff5b1dde49e1a033a327551f.tar.bz2
minetest-05719913aca97e53ff5b1dde49e1a033a327551f.zip
Schematic: Properly deal with before/after node resolving and document (#11011)
This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration). Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
Diffstat (limited to 'games/devtest/mods/testnodes/textures/testnodes_light_3.png')
0 files changed, 0 insertions, 0 deletions
class="hl opt">, handle_buttons = function(self,fields) if not self.hidden then return self.buttonhandler(self,fields) end end, handle_events = function(self,event) if not self.hidden then return self.eventhandler(self,event) end end, hide = function(self) self.hidden = true end, show = function(self) self.hidden = false end, delete = function(self) if self.parent ~= nil then self.parent:show() end ui.delete(self) end, set_parent = function(self,parent) self.parent = parent end } dialog_metatable.__index = dialog_metatable function dialog_create(name,get_formspec,buttonhandler,eventhandler) local self = {} self.name = name self.type = "toplevel" self.hidden = true self.data = {} self.formspec = get_formspec self.buttonhandler = buttonhandler self.user_eventhandler = eventhandler setmetatable(self,dialog_metatable) ui.add(self) return self end