Skip to content

Commit

Permalink
Apply or nik
Browse files Browse the repository at this point in the history
Co-authored-by: OgelGames <[email protected]>
  • Loading branch information
Emojigit and OgelGames authored Jun 5, 2024
1 parent 3f70823 commit 502f607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions technic_cnc/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ function technic_cnc.register_cnc_machine(nodename, def)
groups.tubedevice_receiver = 1
end

-- Only do logging when technic is loaded... I don't wanna duplicate code
local on_metadata_inventory_move = technic_cnc.use_technic and technic.machine_on_inventory_move
local on_metadata_inventory_put = technic_cnc.use_technic and technic.machine_on_inventory_put
local on_metadata_inventory_take = technic_cnc.use_technic and technic.machine_on_inventory_take
-- Only do logging when technic is enabled to avoid duplicating code
local on_metadata_inventory_move = technic_cnc.use_technic and technic.machine_on_inventory_move or nil
local on_metadata_inventory_put = technic_cnc.use_technic and technic.machine_on_inventory_put or nil
local on_metadata_inventory_take = technic_cnc.use_technic and technic.machine_on_inventory_take or nil

-- Inactive state CNC machine
minetest.register_node(":" .. nodename, {
Expand Down

0 comments on commit 502f607

Please sign in to comment.