Skip to content

Fix lua error#3646

Merged
Astralcircle merged 1 commit into
wiremod:masterfrom
Astralcircle:cppi
Jul 8, 2026
Merged

Fix lua error#3646
Astralcircle merged 1 commit into
wiremod:masterfrom
Astralcircle:cppi

Conversation

@Astralcircle

Copy link
Copy Markdown
Contributor

Fixes:

- lua/autorun/server/sv_cpp.lua:7: attempt to index a nil value
1. GetOwner - lua/autorun/server/sv_cpp.lua:7
 2. CanTool - lua/autorun/sh_cpp.lua:5
  3. RightClick - addons/wire/lua/wire/stools/hydraulic.lua:181
   4. <unknown> - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:273

Not prop protection issue, it's because WireLib.CanTool pushes NULL ent

Fixes:
```
- lua/autorun/server/sv_cpp.lua:7: attempt to index a nil value
1. GetOwner - lua/autorun/server/sv_cpp.lua:7
 2. CanTool - lua/autorun/sh_cpp.lua:5
  3. RightClick - addons/wire/lua/wire/stools/hydraulic.lua:181
   4. <unknown> - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:273
```
Not prop protection issue, it's because WireLib.CanTool pushes NULL ent
@Astralcircle Astralcircle merged commit 97bfe3a into wiremod:master Jul 8, 2026
1 check passed
@Astralcircle Astralcircle deleted the cppi branch July 8, 2026 17:31
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.

1 participant