Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Co-authored-by: SX <[email protected]>
  • Loading branch information
Athozus and S-S-X authored Apr 5, 2024
1 parent 8e655f0 commit 80b098a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions technic/machines/register/cables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function technic.register_cable_plate(nodename, data)
local fine_pointed = minetest.pointed_thing_to_face_pos(placer, pointed_thing)
fine_pointed = vector.subtract(fine_pointed, pointed_thing.above)
index = index < 0 and -index or index
-- Normalize direction to prevent `xyz` index overflow with oversize nodes
index = (index-1)%3+1
fine_pointed[xyz[index]] = nil
local key_a, a = next(fine_pointed)
Expand Down

0 comments on commit 80b098a

Please sign in to comment.