mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Fix ID card examine runtime (#78785)
## About The Pull Request This always expects to return a list, even if empty. But this early returned before the parent call, meaning it didn't return the empty list (from parent) as expected. ## Changelog 🆑 Melbert fix: Fixed an error from reading an ID card closely when you can't read /🆑
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
lefthand_file = 'icons/mob/inhands/equipment/idcards_lefthand.dmi'
|
||||
righthand_file = 'icons/mob/inhands/equipment/idcards_righthand.dmi'
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
|
||||
/// Cached icon that has been built for this card. Intended to be displayed in chat. Cardboards IDs and actual IDs use it.
|
||||
var/icon/cached_flat_icon
|
||||
|
||||
@@ -752,10 +753,10 @@
|
||||
break
|
||||
|
||||
/obj/item/card/id/examine_more(mob/user)
|
||||
. = ..()
|
||||
if(!user.can_read(src))
|
||||
return
|
||||
|
||||
. = ..()
|
||||
. += span_notice("<i>You examine [src] closer, and note the following...</i>")
|
||||
|
||||
if(registered_age)
|
||||
|
||||
Reference in New Issue
Block a user