Remove code duplication

This commit is contained in:
Wuzzy 2017-02-17 18:53:30 +01:00
parent 22270277a8
commit 7b9765b15a

View File

@ -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