don't let the deployer place bikes or driftcars

This commit is contained in:
CalebJ 2021-03-21 17:30:13 +00:00
parent cd772281f9
commit c4994b62d4

View File

@ -423,6 +423,8 @@ if pipeworks.enable_deployer then
local wieldstack = virtplayer:get_wielded_item()
local wielded_item_name = wieldstack:get_name() or ""
if wieldstack and wielded_item_name:find("trellis") then return end
if wieldstack and wielded_item_name:find("driftcar:") then return end
if wieldstack and wielded_item_name:find("bike:") then return end
virtplayer:set_wielded_item((minetest.registered_items[wieldstack:get_name()] or {on_place=minetest.item_place}).on_place(wieldstack, virtplayer, pointed_thing) or wieldstack)
end,
eject_drops = false,