File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -288,18 +288,18 @@ Several events will automatically fire whenever an inventory is edited. This is
288288
289289``` C#
290290// Subscribe to item added event
291- inventory .Instance .ItemAdded .AddListener ((item ) => {
291+ inventory .Instance .Events . ItemAdded .AddListener ((item ) => {
292292 Debug .Log (" Item added: " + item .Definition .DisplayName );
293293});
294294
295295// Subscribe to item removed event
296- inventory .Instance .ItemRemoved .AddListener ((item ) => {
296+ inventory .Instance .Events . ItemRemoved .AddListener ((item ) => {
297297 Debug .Log (" Item removed: " + item .Definition .DisplayName );
298298});
299299
300300// Subscribe to item quantity changed event
301301// Note this will fire when an item is added or removed
302- inventory .Instance .ItemChanged .AddListener ((item ) => {
302+ inventory .Instance .Events . ItemChanged .AddListener ((item ) => {
303303 Debug .Log (" Item quantity changed: " + item .Definition .DisplayName );
304304});
305305```
You can’t perform that action at this time.
0 commit comments