We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81165b commit fa4c77fCopy full SHA for fa4c77f
mods/tnt/init.lua
@@ -513,17 +513,17 @@ minetest.register_node("tnt:gunpowder_burning", {
513
on_timer = function(pos, elapsed)
514
for dx = -1, 1 do
515
for dz = -1, 1 do
516
- for dy = -1, 1 do
517
- if not (dx == 0 and dz == 0) then
518
- tnt.burn({
519
- x = pos.x + dx,
520
- y = pos.y + dy,
521
- z = pos.z + dz,
522
- })
+ if math.abs(dx) + math.abs(dz) == 1 then
+ for dy = -1, 1 do
+ tnt.burn({
+ x = pos.x + dx,
+ y = pos.y + dy,
+ z = pos.z + dz,
+ })
523
+ end
524
end
525
526
- end
527
minetest.remove_node(pos)
528
end,
529
-- unaffected by explosions
0 commit comments