Fix crash when placing boat
untested
This commit is contained in:
parent
acc2814c58
commit
f92a964b8e
4
api.lua
4
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
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user