Merge pull request #2 from D00Med/revert-1-patch-1
Revert "Fix crash when placing boat"
This commit is contained in:
commit
5dd9e8a90c
2
api.lua
2
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user