Prevent coral duping with mesecons sticky piston
This commit is contained in:
parent
976c66f02a
commit
c261910d59
30
nodes.lua
30
nodes.lua
|
@ -7818,7 +7818,7 @@ local function coral_on_place(itemstack, placer, pointed_thing, params)
|
||||||
|
|
||||||
if def_under and def_under.on_rightclick and not placer:get_player_control().sneak then
|
if def_under and def_under.on_rightclick and not placer:get_player_control().sneak then
|
||||||
return def_under.on_rightclick(pos_under, node_under,
|
return def_under.on_rightclick(pos_under, node_under,
|
||||||
placer, itemstack, pointed_thing) or itemstack
|
placer, itemstack, pointed_thing) or itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
if node_under.name ~= node_under_name
|
if node_under.name ~= node_under_name
|
||||||
|
@ -7883,7 +7883,7 @@ Everness:register_node('everness:coral_corals', {
|
||||||
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
||||||
}),
|
}),
|
||||||
on_place = coral_on_place,
|
on_place = coral_on_place,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -7922,7 +7922,7 @@ Everness:register_node('everness:coral_jellyfish', {
|
||||||
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
||||||
}),
|
}),
|
||||||
on_place = coral_on_place,
|
on_place = coral_on_place,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -7961,7 +7961,7 @@ Everness:register_node('everness:coral_frosted', {
|
||||||
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
||||||
}),
|
}),
|
||||||
on_place = coral_on_place,
|
on_place = coral_on_place,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8000,7 +8000,7 @@ Everness:register_node('everness:coral_starfish', {
|
||||||
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
dug = { name = 'everness_grass_footstep', gain = 0.25 },
|
||||||
}),
|
}),
|
||||||
on_place = coral_on_place,
|
on_place = coral_on_place,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
minetest.set_node(pos, { name = 'everness:coral_skeleton' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8081,7 +8081,7 @@ Everness:register_node('everness:sand_with_spine_kelp', {
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:cursed_stone' })
|
minetest.set_node(pos, { name = 'everness:cursed_stone' })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -8131,7 +8131,7 @@ Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_1', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8181,7 +8181,7 @@ Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_2', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8231,7 +8231,7 @@ Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_3', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:coral_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8281,7 +8281,7 @@ Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_anemone', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8331,7 +8331,7 @@ Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_darkilluma'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8381,7 +8381,7 @@ Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_demon', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:cursed_lands_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8431,7 +8431,7 @@ Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_1', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8481,7 +8481,7 @@ Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_2', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -8531,7 +8531,7 @@ Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_3', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end,
|
end,
|
||||||
after_destruct = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
minetest.set_node(pos, { name = 'everness:crystal_forest_deep_ocean_sand' })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Ŝarĝante…
Reference in New Issue