mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
The road to Initialize() stability - Enforcing parent call on New(), Initialize() and Destroy() (#14719)
* The road to Initialize() stability * Fixes sanity, for now
This commit is contained in:
@@ -16,10 +16,12 @@
|
||||
var/screen = 0
|
||||
|
||||
/obj/item/paper_bundle/New(default_papers = TRUE)
|
||||
. = ..()
|
||||
if(default_papers) // This is to avoid runtime occuring from a paper bundle being created without a paper in it.
|
||||
new /obj/item/paper(src)
|
||||
new /obj/item/paper(src)
|
||||
amount += 1
|
||||
|
||||
/obj/item/paper_bundle/attackby(obj/item/W as obj, mob/user as mob, params)
|
||||
..()
|
||||
var/obj/item/paper/P
|
||||
|
||||
Reference in New Issue
Block a user