mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 07:41:16 +01:00
Makes the attackby() of storage objects return 0 if the can_be_insterted() fails. This will fix hand labelers on pill bottles.
This commit is contained in:
@@ -300,10 +300,10 @@
|
||||
|
||||
if(isrobot(user))
|
||||
user << "<span class='notice'>You're a robot. No.</span>"
|
||||
return 1 //Robots can't interact with storage items.
|
||||
return 0 //Robots can't interact with storage items.
|
||||
|
||||
if(!can_be_inserted(W))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
if(istype(W, /obj/item/weapon/tray)) //THIS ISN'T HOW OOP WORKS
|
||||
var/obj/item/weapon/tray/T = W
|
||||
|
||||
Reference in New Issue
Block a user