diff --git a/api.lua b/api.lua index 8982fef..0256f5a 100644 --- a/api.lua +++ b/api.lua @@ -670,7 +670,7 @@ minetest.register_tool(vehicle.."_spawner", { return item elseif pointed_thing.type == "node" and minetest.get_item_group(pointed_thing.name, "water")then local obj = minetest.env:add_entity(pointed_thing.under, vehicle) - obj.owner = placer + object.owner = placer item:take_item() return item end @@ -684,4 +684,4 @@ function vehicle_drop(ent, player, name) minetest.env:add_item(pos, name.."_spawner") ent.object:remove() end -end \ No newline at end of file +end