Removed bug with energized base explosions
This commit is contained in:
parent
88612e8a3c
commit
4a91dc4b6d
@ -72,6 +72,7 @@ alchemy.register_timed_effect = register_timed_effect
|
||||
|
||||
-- Energized base (some things shouldnt be drunk)
|
||||
register_effect("energized_base", function(p, pos)
|
||||
local function explode(p, pos)
|
||||
-- Work-around because of how TNT protection checking works
|
||||
local ignore_protection = not minetest.is_protected(pos, p:get_player_name())
|
||||
tnt.boom(p:get_pos(), {
|
||||
@ -80,6 +81,9 @@ register_effect("energized_base", function(p, pos)
|
||||
ignore_protection = ignore_protection,
|
||||
})
|
||||
p:set_hp(0)
|
||||
end
|
||||
-- Slight delay so that the beaker is correctly dropped
|
||||
minetest.after(0.1, explode, p, pos)
|
||||
end)
|
||||
|
||||
-- Drinking slime is just dumb
|
||||
|
Loading…
x
Reference in New Issue
Block a user