1
0
Fork 0

Disable beehive/nest drops in creative

This commit is contained in:
PrairieWind 2023-02-13 19:54:27 -07:00 committed by Gitea
parent 4c7c1fe176
commit 493839cf11
1 changed files with 5 additions and 3 deletions

View File

@ -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
if not silk_touch and not is_creative then
mcl_util.deal_damage(digger, 10)
minetest.add_item(pos, "mcl_beehives:beehive")
if not silk_touch and not is_creative then mcl_util.deal_damage(digger, 10) end
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