1
0
Fork 0

Stop consuming bamboo item when placement is invalid

This commit is contained in:
seventeenthShulker 2023-06-30 17:53:03 +02:00
parent 40e072ab89
commit bd95528e73
1 changed files with 5 additions and 5 deletions

View File

@ -203,11 +203,11 @@ local bamboo_def = {
if node_above_name ~= "mcl_core:water_source" and node_above_name ~= "mcl_core:lava_source" if node_above_name ~= "mcl_core:water_source" and node_above_name ~= "mcl_core:lava_source"
and node_above_name ~= "mcl_nether:nether_lava_source" then and node_above_name ~= "mcl_nether:nether_lava_source" then
local _, position = minetest.item_place(place_item, placer, pointed_thing, fdir) local _, position = minetest.item_place(place_item, placer, pointed_thing, fdir)
if not minetest.is_creative_enabled(placer:get_player_name()) then if position then
itemstack:take_item(1) if not minetest.is_creative_enabled(placer:get_player_name()) then
end itemstack:take_item(1)
if rand_height and rand_height > 1 then end
if position then if rand_height and rand_height > 1 then
mcl_bamboo.mcl_log("Setting Height Data...") mcl_bamboo.mcl_log("Setting Height Data...")
meta = minetest.get_meta(position) meta = minetest.get_meta(position)
if meta then if meta then