AdvDupe2 doesnt handle OnEntityCopyTableFinish properly
Closed this issue · 3 comments
Earu commented
Lately I was experimenting with modifying some of my SENTs to work with the duplicator tools, it works great except i didnt want the parented entities to be copied when duping the entity. So I used the OnEntityCopyTableFinish function to remove every key and value in the table passed to the function to do that (like in the wiki example!).
It works great with the vanilla duplicator tool however AdvDupe2 keeps throwing that error:
lua/advdupe2/sv_clipboard.lua:459: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. AreaCopy - lua/advdupe2/sv_clipboard.lua:459
3. RightClick - lua/weapons/gmod_tool/stools/advdupe2.lua:237
4. unknown - gamemodes/sandbox_modded/entities/weapons/gmod_tool/shared.lua:293
thegrb93 commented
You're a lua coder. I'm sure you can muster the courage to solve and pr it.
notsokodya commented
Why he should do your work?
thegrb93 commented
It's not my work. I'm only saying it because nobody will work on it otherwise, just FYI.