projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263b6f2
)
Fix TNT init for undefined enable_tnt setting
author
Gabriel Huber
<huberg18@gmail.com>
Fri, 25 Jul 2014 17:12:01 +0000
(19:12 +0200)
committer
ShadowNinja
<shadowninja@minetest.net>
Sat, 26 Jul 2014 03:29:44 +0000
(23:29 -0400)
mods/tnt/init.lua
patch
|
blob
|
history
diff --git
a/mods/tnt/init.lua
b/mods/tnt/init.lua
index 1182acaed246d81364b785e34e6b057ffcb6fac2..a2e5adaa87b3a435316134f91f4ccbfeee0bc826 100644
(file)
--- a/
mods/tnt/init.lua
+++ b/
mods/tnt/init.lua
@@
-2,8
+2,8
@@
-- Default to enabled in singleplayer and disabled in multiplayer
local singleplayer = minetest.is_singleplayer()
local setting = minetest.setting_getbool("enable_tnt")
-if (not singleplayer and setting ~=
fals
e) or
- (singleplayer and setting
~= tru
e) then
+if (not singleplayer and setting ~=
tru
e) or
+ (singleplayer and setting
== fals
e) then
return
end