Bugfix that checks if replacer node is really a node
parent
16358f2da3
commit
d5a96cb9fa
2
init.lua
2
init.lua
|
@ -45,6 +45,7 @@ end
|
|||
|
||||
paint.replace = function(user, position, replace, replacer, full)
|
||||
|
||||
if not minetest.registered_nodes[replacer] then return end
|
||||
if replace == replacer then return end
|
||||
if paint.loops > 2000 then return end
|
||||
local pos = position
|
||||
|
@ -74,7 +75,6 @@ paint.replace = function(user, position, replace, replacer, full)
|
|||
paint.replace(user,p, replace, replacer, full)
|
||||
end
|
||||
end
|
||||
|
||||
for i=-1,1,2 do
|
||||
local p = {x=pos.x, y=pos.y, z=pos.z+i}
|
||||
local n = minetest.env:get_node(p).name
|
||||
|
|
|
@ -23,6 +23,7 @@ Changelog
|
|||
0.3
|
||||
* Primary bucket function to only fill the top(visible) nodes
|
||||
* Holding shift while using bucket fills nodes that also are not visible
|
||||
* Bugfix that checks if replacer node is really a node
|
||||
|
||||
0.2
|
||||
* Fixed check if pointed thing is a node (bug)
|
||||
|
|
Loading…
Reference in New Issue