From 16b42f2ab42578336904493cb624ad3a1e6aee92 Mon Sep 17 00:00:00 2001 From: D00Med Date: Thu, 13 Oct 2016 08:41:08 +1000 Subject: [PATCH] Revert "Fix crash when placing boat" --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 0256f5a..8982fef 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) - object.owner = placer + obj.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 +end \ No newline at end of file