game-antum/patches/mod-mobs_goblins__goblin_tr...

12 lines
383 B
Diff

--- goblin_traps.lua.orig 2016-08-12 10:48:42.000000000 -0700
+++ goblin_traps.lua 2016-08-12 10:49:07.683792914 -0700
@@ -318,6 +318,8 @@
else
print("enable_tnt ~= true")
end
+
+local singleplayer = minetest.is_singleplayer()
if (not singleplayer and setting ~= true) or (singleplayer and setting == false) then
-- wimpier trap for non-tnt settings
minetest.register_abm({