From 24517ab6fdcf9ca2a5cd22ae89c5f4914bb5507e Mon Sep 17 00:00:00 2001 From: general Date: Sat, 6 Apr 2024 12:17:32 -0400 Subject: [PATCH] keep balrog whip drop from exploding with the balrog due lagfix --- init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 32c556c..99567ea 100755 --- a/init.lua +++ b/init.lua @@ -194,7 +194,7 @@ mobs:register_mob("mobs_balrog:balrog", { on_die = function(self, pos) self.object:remove() - minetest.after(0.1, function() + minetest.after(0.0, function() -- This has been taken from ../tnt/init.lua @243 minetest.add_particlespawner({ amount = 128, @@ -212,10 +212,9 @@ mobs:register_mob("mobs_balrog:balrog", { texture = "fire_basic_flame.png", collisiondetection = true, }) - tnt.boom(pos, { name = "Balrog's Blast", - radius = 16, + radius = 6, damage_radius = 16, disable_drops = true, ignore_protection = false, @@ -346,6 +345,9 @@ minetest.register_tool("mobs_balrog:balrog_whip", { collisiondetection = true, }) end, + on_blast = function(self, damage) + return false, false, {} + end, })