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
Snippets
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
Zadrog Pzvotrügen
minetest_game
Commits
cabf80b7
Commit
cabf80b7
authored
8 years ago
by
paramat
Browse files
Options
Downloads
Patches
Plain Diff
Fire: Use 'enable fire' setting instead of 'disable fire'
parent
08838549
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
minetest.conf.example
+3
-3
3 additions, 3 deletions
minetest.conf.example
mods/fire/init.lua
+10
-3
10 additions, 3 deletions
mods/fire/init.lua
with
13 additions
and
6 deletions
minetest.conf.example
+
3
−
3
View file @
cabf80b7
...
...
@@ -20,9 +20,9 @@
# 0 to disable. By default it is "share_bones_time" divide by four.
#share_bones_time_early = 300
# Whether
standard
fire should be disabled
(
'basic flame' nodes will disappear
)
# 'permanent flame' nodes will remain with either setting
#
dis
able_fire =
fals
e
# Whether fire should be
enabled. If
disabled
,
'basic flame' nodes will disappear
.
# 'permanent flame' nodes will remain with either setting
.
#
en
able_fire =
tru
e
# Whether the stuff in initial_stuff should be given to new players
#give_initial_stuff = false
...
...
This diff is collapsed.
Click to expand it.
mods/fire/init.lua
+
10
−
3
View file @
cabf80b7
...
...
@@ -235,9 +235,16 @@ minetest.register_abm({
})
-- Enable the following ABMs according to '
dis
able fire' setting
-- Enable the following ABMs according to '
en
able fire' setting
if
minetest
.
setting_getbool
(
"disable_fire"
)
then
local
fire_enabled
=
minetest
.
setting_getbool
(
"enable_fire"
)
if
fire_enabled
==
nil
then
-- New setting not specified, check for old setting.
-- If old setting is also not specified, 'not nil' is true.
fire_enabled
=
not
minetest
.
setting_getbool
(
"disable_fire"
)
end
if
not
fire_enabled
then
-- Remove basic flames only
...
...
@@ -250,7 +257,7 @@ if minetest.setting_getbool("disable_fire") then
action
=
minetest
.
remove_node
,
})
else
else
-- Fire enabled
-- Ignite neighboring nodes, add basic flames
...
...
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