FaigerSYS/MapImageEngine

New version 1.5, i use this plugin. What is this error?

Opened this issue · 2 comments

Fatal error: Declaration of FaigerSYS\MapImageEngine\packet\CustomClientboundMapItemDataPacket::decodePayload() must be compatible with pocketmine\network\mcpe\protocol\DataPacket::decodePayload(): void in /home/minpe/plugins/MapImageEngine/src/FaigerSYS/MapImageEngine/packet/CustomClientboundMapItemDataPacket.php on line 224

On server starting, This error happened.
Please fix it ><

MapImageEngine/packet/CustomClientboundMapItemDatapacket.php on line 83

protected function decodePayload() {

change to

protected function decodePayload() : void {

and line 128

protected function encodePayload() {

change to

protected function encodePayload() : void {

Thank you very much!