Garry's Mod

Garry's Mod

Pikmin Rewritten (Beta) V3.5
Bucket Boi 2 Feb, 2021 @ 7:45am
something is wrong with the onions
i have encountered this bug on jan 27 2021 and its still happening. whenever i spawn an onion of any color, its always blue and the beam is missing, a thing shows up in the top left corner saying:
"the addon Pikmin Rewritten (Beta) V3.5 is creating errors, check the console for details." i look in the console and i see this being spammed into it: Pikmin Rewritten (Beta) V3.5] lua/entities/pik_blueonion/init.lua:49: attempt to perform arithmetic on field 'piknumberleaf' (a nil value)
1. unknown - lua/entities/pik_blueonion/init.lua:49
2. Spawn - [C]:-1
3. SpawnFunction - lua/entities/pik_blueonion/init.lua:73
4. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:758
5. unknown - gamemodes/sandbox/gamemode/commands.lua:823
6. unknown - lua/includes/modules/concommand.lua:54

Pikmin Rewritten (Beta) V3.5] lua/entities/pik_blueonion/init.lua:215: attempt to compare number with nil
1. unknown - lua/entities/pik_blueonion/init.lua:215

however, when i join a friends game, the onions work properly.

I've uninstalled and reinstalled this addon multiple times, I've uninstalled and reinstalled Gmod multiple times, and ive even gotten rid of ALL MY ADDONS. AND NOTHING WORKS!

DOES ANYONE KNOW HOW TO FIX THIS?
Last edited by Bucket Boi; 2 Feb, 2021 @ 7:54am