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