Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil errors #11

Closed
wants to merge 2 commits into from
Closed

Fix nil errors #11

wants to merge 2 commits into from

Conversation

Astralcircle
Copy link

@Astralcircle Astralcircle commented Oct 20, 2024

Fixes:

[Contraption Framework] lua/cfw/core/connectivity_sv.lua:16: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
 2. floodFill - lua/cfw/core/connectivity_sv.lua:16
  3. disconnect - lua/cfw/core/connectivity_sv.lua:76
   4. fn - lua/cfw/core/parenting_sv.lua:107
    5. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109
[Contraption Framework] lua/cfw/core/connectivity_sv.lua:68: attempt to index field '_links' (a nil value)
1. disconnect - lua/cfw/core/connectivity_sv.lua:68
 2. SetParent - lua/cfw/core/parenting_sv.lua:63
  3. Function - lua/autorun/parent_childtables.lua:26
   4. fn - lua/includes/extensions/entity.lua:146
    5. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109

@Astralcircle Astralcircle changed the title Fix nil error Fix nil errors Oct 20, 2024
@thecraftianman
Copy link
Member

iirc we purposely haven't fixed these yet because they've consistently indicated deeper issues with how certain entities are being handled. Do you think you could please give some more context behind what was causing these?

@Astralcircle
Copy link
Author

No, my server just had error logging and they were occurring, but it seems my pull didn't help as they still occur occasionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants