Merge pull request #2 from D00Med/revert-1-patch-1

Revert "Fix crash when placing boat"
This commit is contained in:
D00Med 2016-10-13 08:41:22 +10:00 committed by GitHub
commit 5dd9e8a90c

View File

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