mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Fix printer handout runtime (#21637)
# Summary This PR fixes a runtime when printers eject paper without a mob being nearby (mainly automated console printouts). ## Changes - Add mob check when printer handout papers.
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
P.color = paper_color
|
||||
|
||||
stored_paper--
|
||||
usr.put_in_hands(P, TRUE)
|
||||
if(ismob(usr))
|
||||
usr.put_in_hands(P, TRUE)
|
||||
return P
|
||||
|
||||
/obj/item/computer_hardware/nano_printer/attackby(obj/item/attacking_item, mob/user)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: FabianK3
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Fixed runtime error when paper is handed out by printers without a mob nearby."
|
||||
Reference in New Issue
Block a user