snowgears / shopbugs

Shop bug tracker
8 stars 4 forks source link

[BUG] InventoryCloseEvent on Enderchest throws an error when location is null #387

Closed RhythmicSys closed 1 year ago

RhythmicSys commented 1 year ago

Is there an existing issue for this?

Type of bug

Error in console

Environment

- Server Version: Current: git-Purpur-1888 (MC: 1.19.3)
- Shop Version: 1.8.4.2

Server startup log

https://mclo.gs/nmtHdyI

Shop config files

https://mclo.gs/gRy1eUl

Error log (if applicable)

https://pastebin.com/38E88hbH

Bug description

If a player uses the command /ec to open their enderchest, it sends errors in console

Steps to reproduce

Have a plugin that opens an enderchest without a location open enderchest error in console

Expected behaviour

There would be no error

Actual behaviour

There is an error

Other information

Enderchest has been removed as a usable shop item, as suggested in this bug report which has not stopped the issue Enderchest command comes from this plugin using this method

snowgears commented 1 year ago

This was fixed in a patchfix uploaded to Spigot. Please download the latest version (still 1.8.4.2 on Spigot). I reuploaded and fixed this.

SoundGamingYT commented 1 year ago

Bug is still happening.