Skip to content

Commit

Permalink
remove lack of unused things
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustKisik committed Oct 9, 2024
1 parent 5f202a2 commit dd9ba79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/extensions/state_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ var/global/list/state_machines = list()

/datum/state_machine/New(datum/_holder)
..()
if(!istype(_holder))
stack_trace("Non-datum holder supplied to [type] New().")
if(!istype(_holder, expected_type))
stack_trace("Non-[expected_type] holder supplied to [type] New().")
else
holder_ref = weakref(_holder)
set_state(current_state)
Expand Down
4 changes: 4 additions & 0 deletions code/game/machinery/_machines_base/machinery_components.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ GLOBAL_LIST_INIT(machine_path_to_circuit_type, cache_circuits_by_build_path())
for(var/component_path in uncreated_component_parts)
var/number = uncreated_component_parts[component_path] || 1
LAZYREMOVE(uncreated_component_parts, component_path)
// Stacks are created differently to avoid qdel churn.
if(ispath(component_path, /obj/item/stack))
install_component(new component_path(src, number), refresh_parts = FALSE)
continue
for(var/i in 1 to number)
install_component(component_path, refresh_parts = FALSE)

Expand Down

0 comments on commit dd9ba79

Please sign in to comment.