menu
#4873939 Declaration of jasonwynn10\beacon\packet\InventoryTransactionPacketV2::decodePayload() must be compatible with pocketmine\network\mcpe\protocol\InventoryTransactionPacket::decodePayload(): void

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-08 03:53:07 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 7.4.14
Operating system: linux
System banner: Linux aa9d1405-8bb5-4d48-8e6b-375fb26c66c2 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of jasonwynn10\beacon\packet\InventoryTransactionPacketV2::decodePayload() must be compatible with pocketmine\network\mcpe\protocol\InventoryTransactionPacket::decodePayload(): void
File: plugins/PM-Beacons_v1.0.5.phar/src/jasonwynn10/beacon/packet/InventoryTransactionPacketV2
Line: #10
Error level: E_COMPILE_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
declare(strict_types=1);
namespace jasonwynn10\beacon\packet;

use jasonwynn10\beacon\inventory\action\CustomInventoryAction;
use pocketmine\network\mcpe\protocol\InventoryTransactionPacket;
use pocketmine\network\mcpe\protocol\types\inventory\InventoryTransactionChangedSlotsHack;

class InventoryTransactionPacketV2 extends InventoryTransactionPacket {
protected function decodePayload(){
$this->requestId = $this->readGenericTypeNetworkId();
$this->requestChangedSlots = [];
if($this->requestId !== 0){
for($i = 0, $len = $this->getUnsignedVarInt(); $i < $len; ++$i){
$this->requestChangedSlots[] = InventoryTransactionChangedSlotsHack::read($this);
}
}

$this->transactionType = $this->getUnsignedVarInt();

Loaded Plugins

  • Show

Server Settings

  • Show