Merge pull request 'Prevent slime blocks from 'connecting' to honey blocks when pushing/pulling, like in Minecraft' (#3803) from seventeenthShulker/MineClone2:independent_stickies into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3803
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
This commit is contained in:
chmodsayshello 2023-06-17 18:26:55 +00:00
commit 7219f70d77
2 changed files with 2 additions and 2 deletions

@ -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