don't let the deployer place bikes or driftcars
This commit is contained in:
parent
cd772281f9
commit
c4994b62d4
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user