mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fix IPC's entering occupied rechargers
This commit is contained in:
@@ -241,8 +241,15 @@
|
||||
|
||||
else if(istype(user, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(!isnull(H.internal_organs_by_name["cell"]))
|
||||
can_accept_user = 1
|
||||
|
||||
if(H.stat == DEAD)
|
||||
return
|
||||
if(occupant)
|
||||
R << "<span class='warning'>The cell is already occupied!</span>"
|
||||
return
|
||||
if(isnull(H.internal_organs_by_name["cell"]))
|
||||
return
|
||||
can_accept_user = 1
|
||||
|
||||
if(!can_accept_user)
|
||||
user << "<span class='notice'>Only non-organics may enter the recharger!</span>"
|
||||
|
||||
Reference in New Issue
Block a user