FancyInnovations / FancyInnovations/FancyPlugins

Bug: Right Click On NPC (Only Right)

Open
#260 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?

## Bug Description

`right_click` actions still disconnect players on Purpur 26.1.2, even on the version that includes the supposed fix for the `right_click` action trigger on 26.1.2.

The issue is not related to the executed command or to my menu plugin. I tested it with a simple command like `say test`, and the player still gets disconnected when using `right_click`.

`left_click` works normally.

## Error

The player gets disconnected with:

```log
Internal Exception: java.lang.NullPointerException: Cannot invoke "java.lang.Enum.ordinal()" because "constant" is null

### In which software has the error occurred?

Other

### Plugin version

FancyNpcs Version: 2.10.0.362

### Server version

26.1.2 Purpur

### Relevant log output

```shell
Expected Behavior

right_click actions should be added, removed, and triggered normally without disconnecting the player.

Actual Behavior

Using right_click actions causes the player to disconnect with an internal client exception:

Cannot invoke "java.lang.Enum.ordinal()" because "constant" is null
```

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.