Remove superfluous check for "mcl_potions" globabl

This commit is contained in:
cora 2024-09-02 15:09:18 +02:00
parent 3e351a6e10
commit a2db232d2f
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -99,7 +99,6 @@ function mcl_meshhand.update_player(player)
local creative = minetest.is_creative_enabled(player:get_player_name()) local creative = minetest.is_creative_enabled(player:get_player_name())
hand = ItemStack("mcl_meshhand:hand" .. (creative and "_crea" or "_surv")) hand = ItemStack("mcl_meshhand:hand" .. (creative and "_crea" or "_surv"))
end end
if not mcl_potions then player:get_inventory():set_stack("hand", 1, hand) end
player:get_inventory():set_stack("hand", 1, mcl_potions.hf_update_internal(hand, player)) player:get_inventory():set_stack("hand", 1, mcl_potions.hf_update_internal(hand, player))
end end

View File

@ -1,5 +1,5 @@
name = mcl_meshhand name = mcl_meshhand
author = jordan4ibanez author = jordan4ibanez
description = Applies the player skin texture to the hand. description = Applies the player skin texture to the hand.
depends = mcl_tools, mcl_player, mcl_gamemode depends = mcl_tools, mcl_player, mcl_gamemode, mcl_potions
optional_depends = mcl_skins, mcl_custom_skins optional_depends = mcl_skins, mcl_custom_skins