mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] prevent pickup of items we are inside of (#7802)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -191,6 +191,10 @@
|
||||
if(stat)
|
||||
return 0
|
||||
|
||||
// prevent picking up items while being in them
|
||||
if(istype(A, /obj/item) && A == loc)
|
||||
return 0
|
||||
|
||||
return 1
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user