Skip to content

Commit

Permalink
Fix: get_organ_by_type for skrell eyes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizzonium committed Mar 28, 2023
1 parent 0e1b6a0 commit 3884bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modular_galactic/skrell/skrell_eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define OFFSET_X 1
#define OFFSET_Y 2
/obj/item/organ/internal/eyes/skrell/generate_body_overlay(mob/living/carbon/human/parent)
if(!istype(parent) || parent.getorgan(/obj/item/organ/internal/eyes) != src)
if(!istype(parent) || parent.get_organ_by_type(/obj/item/organ/internal/eyes) != src)
CRASH("Generating a body overlay for [src] targeting an invalid parent '[parent]'.")

var/mutable_appearance/eye_left = mutable_appearance('modular_galactic/skrell/skrell_eyes.dmi', "[eye_icon_state]_l", -BODY_LAYER)
Expand Down

0 comments on commit 3884bb1

Please sign in to comment.