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
e3809922
Commit
e3809922
authored
8 years ago
by
paramat
Browse files
Options
Downloads
Patches
Plain Diff
TNT: Add missing 'then'
parent
5644ab4b
Branches
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/tnt/init.lua
+2
-3
2 additions, 3 deletions
mods/tnt/init.lua
with
2 additions
and
3 deletions
mods/tnt/init.lua
+
2
−
3
View file @
e3809922
tnt
=
{}
-- Default to enabled when in singleplayer
local
enable_tnt
=
minetest
.
setting_getbool
(
"enable_tnt"
)
if
enable_tnt
==
nil
if
enable_tnt
==
nil
then
enable_tnt
=
minetest
.
is_singleplayer
()
end
...
...
@@ -82,7 +83,6 @@ local function add_drop(drops, item)
end
end
local
function
destroy
(
drops
,
npos
,
cid
,
c_air
,
c_fire
,
on_blast_queue
,
ignore_protection
,
ignore_on_blast
)
if
not
ignore_protection
and
minetest
.
is_protected
(
npos
,
""
)
then
return
cid
...
...
@@ -106,7 +106,6 @@ local function destroy(drops, npos, cid, c_air, c_fire, on_blast_queue, ignore_p
end
end
local
function
calc_velocity
(
pos1
,
pos2
,
old_vel
,
power
)
-- Avoid errors caused by a vector of zero length
if
vector
.
equals
(
pos1
,
pos2
)
then
...
...
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