Merge pull request #2 from D00Med/revert-1-patch-1
Revert "Fix crash when placing boat"
This commit is contained in:
commit
5dd9e8a90c
4
api.lua
4
api.lua
@ -670,7 +670,7 @@ minetest.register_tool(vehicle.."_spawner", {
|
|||||||
return item
|
return item
|
||||||
elseif pointed_thing.type == "node" and minetest.get_item_group(pointed_thing.name, "water")then
|
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)
|
local obj = minetest.env:add_entity(pointed_thing.under, vehicle)
|
||||||
object.owner = placer
|
obj.owner = placer
|
||||||
item:take_item()
|
item:take_item()
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
@ -684,4 +684,4 @@ function vehicle_drop(ent, player, name)
|
|||||||
minetest.env:add_item(pos, name.."_spawner")
|
minetest.env:add_item(pos, name.."_spawner")
|
||||||
ent.object:remove()
|
ent.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user