From e1496df0a618e26fc3e1ca52e58177f32a3f4e81 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Tue, 20 Jul 2021 11:09:19 -0700 Subject: [PATCH] Remove tnt:boom node after explosion --- TODO.txt | 1 - changelog.txt | 1 + tnt_function.lua | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.txt b/TODO.txt index 49f861e..349ee04 100644 --- a/TODO.txt +++ b/TODO.txt @@ -2,7 +2,6 @@ TODO: - add version using mobs_redo API - add version using cmer API -- fix explosion leaving "tnt:boom" node - add wear to armor when exploding - add no-griefing setting - disable attacking if damage disabled diff --git a/changelog.txt b/changelog.txt index d90f506..ad0ba95 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ v1.1 - added sound when hit - fixed entity vertical positioning - added setting to customize spawn nodes +- fixed tnt:boom node left after explosion v1.0 ---- diff --git a/tnt_function.lua b/tnt_function.lua index 40d10cc..21a6a3a 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -301,4 +301,5 @@ function sneeker.boom(pos, large) entity_physics(pos, radius) eject_drops(drops, pos, radius) add_effects(pos, radius) + core.remove_node(pos) end