mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #278 from caelaislinn/master
Fixed disposals error from using a grab on a disposal chute.
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
if(stat & BROKEN)
|
||||
return
|
||||
|
||||
//robots shouldn't be able to grab/carry stuff anyway
|
||||
if(isrobot(user))
|
||||
return
|
||||
|
||||
if(istype(I, /obj/item/weapon/melee/energy/blade))
|
||||
user << "You can't place that item inside the disposal unit."
|
||||
return
|
||||
@@ -91,10 +95,6 @@
|
||||
for (var/mob/C in viewers(src))
|
||||
C.show_message("\red [GM.name] has been placed in the [src] by [user].", 3)
|
||||
del(G)
|
||||
|
||||
if(isrobot(user))
|
||||
return
|
||||
|
||||
else
|
||||
if(!I || isnull(I))
|
||||
//CRASH("disposal/attackby() was called, but I was nulled before calling user.drop_item()")
|
||||
|
||||
Reference in New Issue
Block a user