Fix accidental global in bucket code

This commit is contained in:
Wuzzy 2021-02-24 16:43:31 +01:00
parent cdc3b82383
commit 0d6ee05d1f
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ function realtest.register_liquid(name, LiquidDef)
if pointed_thing.type ~= "node" then
return
end
n = minetest.get_node(pointed_thing.under)
local n = minetest.get_node(pointed_thing.under)
if minetest.registered_nodes[n.name].buildable_to then
minetest.add_node(pointed_thing.under, {name=LiquidDef.source})
else