Bugfix that checks if replacer node is really a node

master
bas080 2013-04-25 04:30:30 +02:00
parent 16358f2da3
commit d5a96cb9fa
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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)