mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Merge branch 'release/3.4'
This commit is contained in:
commit
d2513ff908
@ -109,7 +109,12 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
$this->putVarInt($auxValue);
|
$this->putVarInt($auxValue);
|
||||||
|
|
||||||
$nbt = $item->getCompoundTag();
|
$nbt = $item->getCompoundTag();
|
||||||
$this->putLShort(strlen($nbt));
|
$nbtLen = strlen($nbt);
|
||||||
|
if($nbtLen > 32767){
|
||||||
|
throw new \InvalidArgumentException("NBT encoded length must be < 32768, got $nbtLen bytes");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->putLShort($nbtLen);
|
||||||
$this->put($nbt);
|
$this->put($nbt);
|
||||||
|
|
||||||
$this->putVarInt(0); //CanPlaceOn entry count (TODO)
|
$this->putVarInt(0); //CanPlaceOn entry count (TODO)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user