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

UnturnedItemSpawner throwing exception #801

Closed
rube200 opened this issue Nov 24, 2023 · 1 comment
Closed

UnturnedItemSpawner throwing exception #801

rube200 opened this issue Nov 24, 2023 · 1 comment
Labels
area-Unturned bug Something isn't working

Comments

@rube200
Copy link
Contributor

rube200 commented Nov 24, 2023

System.ArgumentOutOfRangeException: Type is not a cloth
Parameter name: type
Actual value was GUN.
  at OpenMod.Unturned.Items.UnturnedItemSpawner+<>c__DisplayClass0_0.<GiveItemAsync>g__GiveItemTask|0 () [0x001e6] in /_/unturned/OpenMod.Unturned/Items/UnturnedItemSpawner.cs:61 
  at Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask`2[TStateMachine,T].GetResult (System.Int16 token) [0x00000] in <b570aeb885074593be3f1a2137ad3fbd>:0 
  at Cysharp.Threading.Tasks.UniTaskExtensions+<>c__34`1[T].<AsTask>b__34_0 (System.Object state) [0x00016] in <b570aeb885074593be3f1a2137ad3fbd>:0 
--- End of stack trace from previous location where exception was thrown ---

Needs to be investigated the cause

Also passing item information to this exception thrower

_ => throw new ArgumentOutOfRangeException(nameof(itemAsset.type), itemAsset.type, "Type is not a cloth")

@rube200 rube200 added bug Something isn't working area-Unturned labels Nov 24, 2023
@rube200
Copy link
Contributor Author

rube200 commented Mar 4, 2024

I will close this for now.

@rube200 rube200 closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Unturned bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant