nodecore-cd2025/mods/nc_player_setup/step_interactinv.lua
2020-06-30 07:14:34 -04:00

13 lines
377 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local nodecore
= nodecore
-- LUALOCALS > ---------------------------------------------------------
nodecore.register_playerstep({
label = "inventory requires interact",
action = function(player)
if nodecore.interact(player) then return end
return nodecore.inventory_dump(player)
end
})