-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework coal alloy furnace ABM a bit #400
base: master
Are you sure you want to change the base?
Conversation
local fuel = nil | ||
local afterfuel | ||
local fuellist = inv:get_list("fuel") | ||
|
||
if fuellist then | ||
fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist}) | ||
end | ||
local fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist}) | ||
|
||
if fuel.time <= 0 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of seems too simple to me, did I overlook something?
Reasoning: in case if fuellist
expression fails then it would anyway crash on if fuel.time <= 0
so basically this shouldn't really affect outcome and is basically just cleanup.
I believe this should be fine and there's other issues unrelated to this change in case it actually crashes.
Click for detailed source code test coverage reportTest coverage report for Technic CNC 87.49% in 11/14 files:
Test coverage report for technic chests 44.99% in 6/6 files:
Test coverage report for technic 67.06% in 97/98 files:
Raw test runner output for geeks:CNC:
Chests:
Technic:
|
Closes #398
For API
technic.get_recipe(method, items)
I'd rather leave it as is and not try to check every possible user mistake there but rather specify that arguments must be of correct type and contain correct information.This old compatibility shim has been there for over 11 years already and now it has been removed.
Additionally we've already dropped some similar compatibility shims that were not even this old.