mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-13 18:20:17 +01:00
Remove code duplication
This commit is contained in:
parent
22270277a8
commit
7b9765b15a
4
init.lua
4
init.lua
@ -361,10 +361,6 @@ mt.register_on_player_receive_fields(function(player, formname, fields)
|
||||
item = item:sub(1,-5)
|
||||
end
|
||||
|
||||
local recipes = get_recipes(item)
|
||||
local is_fuel = get_fueltime(item) > 0
|
||||
if not recipes and not is_fuel then return end
|
||||
|
||||
local is_fuel = get_fueltime(item) > 0
|
||||
local recipes = get_recipes(item)
|
||||
if not recipes and not is_fuel then return end
|
||||
|
Loading…
Reference in New Issue
Block a user