Skip to content

Commit

Permalink
Artisan Benches: Refactoring: Grinder: just rename vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Nov 15, 2024
1 parent 600afa3 commit bca6f26
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions mods/lord/Blocks/grinder/src/grinder/Processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,22 @@ local Processor = {}
-- Public functions:

--- @static
--- @param pos table {x,y,z}
function Processor.act(pos)

local g = Grinder:new(pos)
local meta = g:get_meta()
local inv = meta:get_inventory()
--- @param position Position
function Processor.act(position)
local grinder = Grinder:new(position)
local meta = grinder:get_meta()
local inv = meta:get_inventory()

local possible, result_source, remaining_source, result_fuel, remaining_fuel = grinding_possible(inv, meta)
if possible then
g:activate("%s Grinding")
grinder:activate("%s Grinding")

burn_fuel(meta, remaining_fuel, result_fuel)
grind_source(meta, remaining_source, result_source)
else
g:deactivate("%s Out Of Heat")
grinder:deactivate("%s Out Of Heat")
end

end


return Processor

0 comments on commit bca6f26

Please sign in to comment.