New() goes in the trash, we've gotta Initialize()
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
|
||||
// Auto conveyour is always on unless unpowered
|
||||
|
||||
/obj/machinery/conveyor/auto/New(loc, newdir)
|
||||
..(loc, newdir)
|
||||
/obj/machinery/conveyor/auto/Initialize(mapload, newdir)
|
||||
. = ..()
|
||||
operating = 1
|
||||
update_move_direction()
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
icon_state = "conveyor[operating * verted]"
|
||||
|
||||
// create a conveyor
|
||||
/obj/machinery/conveyor/New(loc, newdir)
|
||||
..(loc)
|
||||
/obj/machinery/conveyor/Initialize(mapload, newdir)
|
||||
. = ..()
|
||||
if(newdir)
|
||||
setDir(newdir)
|
||||
update_move_direction()
|
||||
@@ -326,8 +326,8 @@
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
var/id = "" //inherited by the switch
|
||||
|
||||
/obj/item/conveyor_switch_construct/New()
|
||||
..()
|
||||
/obj/item/conveyor_switch_construct/Initialize()
|
||||
. = ..()
|
||||
id = rand() //this couldn't possibly go wrong
|
||||
|
||||
/obj/item/conveyor_switch_construct/afterattack(atom/A, mob/user, proximity)
|
||||
|
||||
Reference in New Issue
Block a user