FancyInnovations / FancyInnovations/FancyPlugins

Bug: llegalArgumentException: bound must be positive

Open
#205 1 comment 0 reactions 0 assignees View on GitHub
Priority: Medium Status: Pending Type: Bug
Dominant language
Java
Stars
88
Forks
109
PR merge metrics
No merged PRs in 30d

Description

### In which plugin has the error occurred?

FancyNpcs

### What happened?

We have too many players and NPCs, so I'm not sure exactly what's causing this bug. However, it appeared recently, perhaps in this latest version.

### In which software has the error occurred?

Paper

### Plugin version

2.9.2

### Server version

1.21.8

### Relevant log output

```shell
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: Exception in thread "FancyNpcs-ActionExecutor" java.lang.IllegalArgumentException: bound must be positive
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at java.base/java.util.Random.nextInt(Random.java:557)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.types.ExecuteRandomActionAction.getRandomIndex(ExecuteRandomActionAction.java:39)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.types.ExecuteRandomActionAction.execute(ExecuteRandomActionAction.java:30)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutionContext.run(ActionExecutionContext.java:95)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutionContext.runNext(ActionExecutionContext.java:110)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutor.lambda$execute$0(ActionExecutor.java:29)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.