[MIRROR] no infinite materials (#11025)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-07 09:59:45 -07:00
committed by GitHub
parent 5632b52433
commit 22c8ec20b7
13 changed files with 75 additions and 67 deletions

View File

@@ -123,7 +123,7 @@
if(!istype(S))
return 0
if(!(S.material.name in materials))
to_chat(user, span_warning("The [src] doesn't accept [S.material]!"))
to_chat(user, span_warning("The [src] doesn't accept [material_display_name(S.material)]!"))
return 1
if(S.get_amount() < 1)
return 1 // Does this even happen? Sanity check I guess.