mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Fixes guns being unwielded by mousing over the inventory UI (#22712)
Fixes #22036 changes: - bugfix: "Fixed guns getting unwielded when mousing over UI elements." - bugfix: "Fixed mob_can_equip using M as mob, instead of mob/M. Also adds its parameters to all its children." https://github.com/user-attachments/assets/0f427609-3cfc-4c71-b817-44a8d2c6350d
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
item_state = initial(item_state)
|
||||
update_held_icon()
|
||||
|
||||
/obj/item/pickaxe/mob_can_equip(M, slot, disable_warning = FALSE)
|
||||
/obj/item/pickaxe/mob_can_equip(M, slot, disable_warning = FALSE, bypass_blocked_check = FALSE, is_overlay_check = FALSE)
|
||||
//Cannot equip wielded items.
|
||||
if(wielded)
|
||||
to_chat(M, SPAN_WARNING("Unwield the [initial(name)] first!"))
|
||||
|
||||
Reference in New Issue
Block a user