forked from Mirrorlandia_minetest/tnt
TNT: Only burn visually connected powder (#1857)
This commit is contained in:
parent
d035601c36
commit
846e22a06b
2
init.lua
2
init.lua
@ -513,8 +513,8 @@ minetest.register_node("tnt:gunpowder_burning", {
|
||||
on_timer = function(pos, elapsed)
|
||||
for dx = -1, 1 do
|
||||
for dz = -1, 1 do
|
||||
if math.abs(dx) + math.abs(dz) == 1 then
|
||||
for dy = -1, 1 do
|
||||
if not (dx == 0 and dz == 0) then
|
||||
tnt.burn({
|
||||
x = pos.x + dx,
|
||||
y = pos.y + dy,
|
||||
|
Loading…
Reference in New Issue
Block a user