NoSuchMethodException: MapIcon hasn't an empty constructor!
SoKnight opened this issue ยท 1 comments
Describe the bug
Hi! Just now i work on my plugin using ProtocolLib. I use MapData
packet (clientbound) and the PacketWrapper repository has wrapper for this packet. This wrapper has a method for adding MapIcon
's array, but this method throws an exception after trying to construct the MapIcon NMS handle (see screenshot below).
To Reproduce
Steps to reproduce the behavior:
- Try to use
#setMapIcons()
in this wrapper class.
Expected behavior
This method must set an array of MapIcon handles in the packet container, but actually fails.
Screenshots
The exception in console.
Version Info
Pastebin.