mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] no infinite materials (#11025)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5632b52433
commit
22c8ec20b7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user