Fix crash when placing boat

untested
master
Thomas--S 2016-10-11 19:57:49 +02:00 committed by GitHub
parent acc2814c58
commit f92a964b8e
1 changed files with 2 additions and 2 deletions

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)
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
end