Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
minetest_game
Commits
e5ebb36c
Commit
e5ebb36c
authored
5 years ago
by
Paul Ouellette
Committed by
SmallJoker
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Furnace: Fix "output full" infotext
parent
2063fcd0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mods/default/furnace.lua
+4
-1
4 additions, 1 deletion
mods/default/furnace.lua
with
4 additions
and
1 deletion
mods/default/furnace.lua
+
4
−
1
View file @
e5ebb36c
...
...
@@ -107,6 +107,7 @@ local function furnace_node_timer(pos, elapsed)
local
inv
=
meta
:
get_inventory
()
local
srclist
,
fuellist
local
dst_full
=
false
local
cookable
,
cooked
local
fuel
...
...
@@ -146,6 +147,8 @@ local function furnace_node_timer(pos, elapsed)
inv
:
set_stack
(
"src"
,
1
,
aftercooked
.
items
[
1
])
src_time
=
src_time
-
cooked
.
time
update
=
true
else
dst_full
=
true
end
else
-- Item could not be cooked: probably missing fuel
...
...
@@ -195,7 +198,7 @@ local function furnace_node_timer(pos, elapsed)
local
item_percent
=
0
if
cookable
then
item_percent
=
math.floor
(
src_time
/
cooked
.
time
*
100
)
if
item_percent
>
100
then
if
dst_full
then
item_state
=
"100% (output full)"
else
item_state
=
item_percent
..
"%"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment