Skip to content

Commit

Permalink
bugfix: fixed monkeycube exploit server crash (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Dec 6, 2023
1 parent bfbeb3a commit 2d720c3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions code/modules/food_and_drinks/food/foods/meat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,14 @@

/obj/item/reagent_containers/food/snacks/monkeycube/proc/Expand()
if(LAZYLEN(SSmobs.cubemonkeys) >= CONFIG_GET(number/cubemonkey_cap))
if(fingerprintslast)
to_chat(get_mob_by_ckey(fingerprintslast), "<span class='warning'>Bluespace harmonics prevent the spawning of more than [CONFIG_GET(number/cubemonkey_cap)] monkeys on the station at one time!</span>")
else
visible_message("<span class='notice'>[src] fails to expand!</span>")
return
//Due to server crashing capabilities, chat feature is disabled.

//if(fingerprintslast)
// to_chat(get_mob_by_ckey(fingerprintslast), "<span class='warning'>Bluespace harmonics prevent the spawning of more than [CONFIG_GET(number/cubemonkey_cap)] monkeys on the station at one time!</span>")
//else
// visible_message("<span class='notice'>[src] fails to expand!</span>")

if(!QDELETED(src))
visible_message("<span class='notice'>[src] expands!</span>")
if(fingerprintslast)
Expand Down

0 comments on commit 2d720c3

Please sign in to comment.