mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
CraftingDataPacket: fixed assert failure on debug builds
This commit is contained in:
parent
92fd2d35a4
commit
12c66d3362
@ -276,7 +276,7 @@ class CraftingDataPacket extends DataPacket{
|
||||
$writer = new NetworkBinaryStream();
|
||||
$counter = 0;
|
||||
foreach($this->entries as $d){
|
||||
$entryType = self::writeEntry($d, $writer, $counter++);
|
||||
$entryType = self::writeEntry($d, $writer, ++$counter);
|
||||
if($entryType >= 0){
|
||||
$this->putVarInt($entryType);
|
||||
$this->put($writer->getBuffer());
|
||||
|
Loading…
x
Reference in New Issue
Block a user