mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 01:22:24 +00:00
Merge pull request #4494 from VOREStation/vplk-small-fixes
Fix runtimes in MouseDrop when dragging out of the screen
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/clothing/MouseDrop(var/obj/over_object)
|
||||
if (ishuman(usr) || issmall(usr))
|
||||
if (over_object && (ishuman(usr) || issmall(usr)))
|
||||
//makes sure that the clothing is equipped so that we can't drag it into our hand from miles away.
|
||||
if (!(src.loc == usr))
|
||||
return
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
/obj/item/weapon/evidencebag/MouseDrop(var/obj/item/I as obj)
|
||||
if (!ishuman(usr))
|
||||
return
|
||||
if(!istype(I) || I.anchored)
|
||||
return ..()
|
||||
|
||||
var/mob/living/carbon/human/user = usr
|
||||
|
||||
@@ -36,9 +38,6 @@
|
||||
else
|
||||
return
|
||||
|
||||
if(!istype(I) || I.anchored)
|
||||
return
|
||||
|
||||
if(istype(I, /obj/item/weapon/evidencebag))
|
||||
user << "<span class='notice'>You find putting an evidence bag in another evidence bag to be slightly absurd.</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user