Prevent slime blocks from 'connecting' to honey blocks when pushing/pulling, like in Minecraft.
parent
1192a46b9c
commit
758d38894d
|
@ -71,7 +71,7 @@ minetest.register_node("mcl_core:slimeblock", {
|
||||||
neighbor_node = minetest.get_node(neighbor_pos)
|
neighbor_node = minetest.get_node(neighbor_pos)
|
||||||
end
|
end
|
||||||
local name = neighbor_node.name
|
local name = neighbor_node.name
|
||||||
if name ~= "air" and name ~= "ignore" and not mesecon.mvps_unsticky[name] then
|
if name ~= "air" and name ~= "ignore" and name ~= "mcl_honey:honey_block" and not mesecon.mvps_unsticky[name] then
|
||||||
local piston, piston_side, piston_up, piston_down = false, false, false, false
|
local piston, piston_side, piston_up, piston_down = false, false, false, false
|
||||||
if name == "mesecons_pistons:piston_sticky_off" or name == "mesecons_pistons:piston_normal_off" then
|
if name == "mesecons_pistons:piston_sticky_off" or name == "mesecons_pistons:piston_normal_off" then
|
||||||
piston, piston_side = true, true
|
piston, piston_side = true, true
|
||||||
|
|
|
@ -116,7 +116,7 @@ minetest.register_node("mcl_honey:honey_block", {
|
||||||
neighbor_node = minetest.get_node(neighbor_pos)
|
neighbor_node = minetest.get_node(neighbor_pos)
|
||||||
end
|
end
|
||||||
local name = neighbor_node.name
|
local name = neighbor_node.name
|
||||||
if name ~= "air" and name ~= "ignore" and not mesecon.mvps_unsticky[name] then
|
if name ~= "air" and name ~= "ignore" and name ~= "mcl_core:slimeblock" and not mesecon.mvps_unsticky[name] then
|
||||||
local piston, piston_side, piston_up, piston_down = false, false, false, false
|
local piston, piston_side, piston_up, piston_down = false, false, false, false
|
||||||
if name == "mesecons_pistons:piston_sticky_off" or name == "mesecons_pistons:piston_normal_off" then
|
if name == "mesecons_pistons:piston_sticky_off" or name == "mesecons_pistons:piston_normal_off" then
|
||||||
piston, piston_side = true, true
|
piston, piston_side = true, true
|
||||||
|
|
Loading…
Reference in New Issue