1
0
鏡像自 https://github.com/luanti-org/minetest_game.git 已同步 2025-11-01 15:55:28 +01:00

TNT: Only burn visually connected powder (#1857)

此提交包含在:
SmallJoker
2017-07-29 18:09:15 +02:00
提交者 GitHub
父節點 c81165b2c8
當前提交 fa4c77feba

查看文件

@@ -513,17 +513,17 @@ minetest.register_node("tnt:gunpowder_burning", {
on_timer = function(pos, elapsed)
for dx = -1, 1 do
for dz = -1, 1 do
for dy = -1, 1 do
if not (dx == 0 and dz == 0) then
tnt.burn({
x = pos.x + dx,
y = pos.y + dy,
z = pos.z + dz,
})
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,
})
end
end
end
end
end
minetest.remove_node(pos)
end,
-- unaffected by explosions