mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Disable beehive/nest drops in creative
This commit is contained in:
parent
4c7c1fe176
commit
493839cf11
1 changed files with 5 additions and 3 deletions
|
@ -50,10 +50,12 @@ local dig_hive = function(pos, node, oldmetadata, digger)
|
|||
local is_creative = minetest.is_creative_enabled(digger:get_player_name())
|
||||
|
||||
if beehive then
|
||||
minetest.add_item(pos, "mcl_beehives:beehive")
|
||||
if not silk_touch and not is_creative then mcl_util.deal_damage(digger, 10) end
|
||||
if not silk_touch and not is_creative then
|
||||
mcl_util.deal_damage(digger, 10)
|
||||
minetest.add_item(pos, "mcl_beehives:beehive")
|
||||
end
|
||||
elseif beenest then
|
||||
if silk_touch or is_creative then
|
||||
if silk_touch and not is_creative then
|
||||
minetest.add_item(pos, "mcl_beehives:bee_nest")
|
||||
awards.unlock(digger:get_player_name(), "mcl:total_beelocation")
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue