NPE for newly constructed WrappedDataWatcher on older versions.
0utplay opened this issue ยท 0 comments
- This issue is not solved in a development build
Describe the bug
When creating a new WrappedDataWatcher like in the following snippet:
// metadata if on an old server version (< 15)
if (MinecraftVersion.VILLAGE_UPDATE.isAtLeast(SERVER_VERSION)) {
container.getDataWatcherModifier().write(0, new WrappedDataWatcher());
}
Protocollib will cause an NPE while searching for a constructor. I tested this issue on Paper 1.8.8
To Reproduce
See bug description
Expected behavior
The data watcher should be created correctly
Version Info
https://pastebin.com/sYsRnZYx
Additional context
The npe stacktrace:
https://pastebin.com/Na4htxvW
Might have been introduced in this commit:
77ada09#diff-7b84fe1b8f686e12c065ee5e6bd6dccd1fa1a0e27c222be027cdd29cea47b5da