Added a "return" that I had forgot

pull/3/head
npx 2017-01-05 14:00:20 +01:00
parent cac7238781
commit 970fc5fb2c
1 changed files with 6 additions and 5 deletions

View File

@ -12,6 +12,7 @@ function place_spore(itemstack, placer, pointed_thing, name, topoint, soilblock)
-- return if any of the nodes is not registered
if not minetest.registered_nodes[under.name] then
return
end
-- if not protected then add node and remove 1 item from the itemstack