mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 12:48:32 +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();
|
$writer = new NetworkBinaryStream();
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
foreach($this->entries as $d){
|
foreach($this->entries as $d){
|
||||||
$entryType = self::writeEntry($d, $writer, $counter++);
|
$entryType = self::writeEntry($d, $writer, ++$counter);
|
||||||
if($entryType >= 0){
|
if($entryType >= 0){
|
||||||
$this->putVarInt($entryType);
|
$this->putVarInt($entryType);
|
||||||
$this->put($writer->getBuffer());
|
$this->put($writer->getBuffer());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user