mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Ghostspawner enable fix (#10943)
The ghostspawner can no longer be enabled if all the available slots have been used up. Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
@@ -181,6 +181,9 @@
|
||||
|
||||
//Proc to enable the ghostspawner
|
||||
/datum/ghostspawner/proc/enable()
|
||||
if((max_count - count) <= 0)
|
||||
to_chat(usr, "The ghostspawner can not be enabled - No slots available")
|
||||
return
|
||||
if(usr)
|
||||
log_and_message_admins("has enabled the ghostspawner [src.name]")
|
||||
enabled = TRUE
|
||||
|
||||
Reference in New Issue
Block a user