Skip to content

Commit a1f35c4

Browse files
authored
docs: update mod-feature.md
1 parent 79cdf02 commit a1f35c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/docs/docs/main/mod-feature.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Now, we can instantiate our mod feature classes in our "main.ts" file by using t
9898
```ts
9999
// main.ts
100100

101+
import { initModFeatures } from "isaacscript-common";
101102
import { GreenCandle } from "./features/GreenCandle";
102103
import { mod } from "./mod";
103104

@@ -145,7 +146,7 @@ By default, when a `ModFeature` is instantiated, it will immediately subscribe a
145146
const MOD_FEATURES = [GreenCandle] as const;
146147

147148
// At the beginning of your mod, instantiate your features.
148-
function initModFeatures() {
149+
function manuallyInitModFeatures() {
149150
for (const constructor of FEATURE_CLASSES) {
150151
// - The first argument to the constructor is the upgraded mod object.
151152
// - The second argument to the constructor is whether to register the callbacks.

0 commit comments

Comments
 (0)