Skip to content

Commit

Permalink
Fix game controller (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS authored Jan 5, 2025
1 parent cba3b93 commit 88913ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nodes/digistuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ wrench.register_node("digistuff:controller_programmed", {
channel = wrench.META_TYPE_STRING,
},
description = desc_stripped_with_channel,
-- Prevent picking up occupied controllers.
can_pickup = function(pos)
return core.registered_nodes["digistuff:controller_programmed"].can_dig(pos)
end,
})

-- Detector
Expand Down Expand Up @@ -266,3 +270,4 @@ wrench.register_node("digistuff:wall_knob_configured", {
},
description = desc_stripped_with_channel,
})

0 comments on commit 88913ae

Please sign in to comment.