1
0
Fork 0

Fixed throwing potions through portals

This commit is contained in:
Brandon 2020-07-05 08:16:11 -04:00
parent f0e9727b85
commit c91dc25052
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ local function register_lingering(name, descr, color, def)
local node = minetest.get_node(pos)
local n = node.name
local d = 4
if n ~= "air" or mcl_potions.is_obj_hit(self, pos) then
if n ~= "air" and n ~= "mcl_portals:portal" and n ~= "mcl_portals:portal_end" or mcl_potions.is_obj_hit(self, pos) then
minetest.sound_play("mcl_potions_breaking_glass", {pos = pos, max_hear_distance = 16, gain = 1})
add_lingering_effect(pos, color, def)
minetest.add_particlespawner({

View File

@ -41,7 +41,7 @@ local function register_splash(name, descr, color, def)
local n = node.name
local d = 2
local redux_map = {7/8,0.5,0.25}
if n ~= "air" or mcl_potions.is_obj_hit(self, pos) then
if n ~= "air" and n ~= "mcl_portals:portal" and n ~= "mcl_portals:portal_end" or mcl_potions.is_obj_hit(self, pos) then
minetest.sound_play("mcl_potions_breaking_glass", {pos = pos, max_hear_distance = 16, gain = 1})
minetest.add_particlespawner({
amount = 50,