Merge remote-tracking branch 'origin/stable'

This commit is contained in:
Dylan K. Taylor
2021-04-11 16:36:39 +01:00
2 changed files with 10 additions and 6 deletions

View File

@ -286,6 +286,10 @@ class PacketSerializer extends BinaryStream{
$shieldBlockingTick = $extraData->getLLong();
}
if(!$extraData->feof()){
throw new PacketDecodeException("Unexpected trailing extradata for network item $netId");
}
return new ItemStack($id, $meta, $count, $blockRuntimeId, $compound, $canPlaceOn, $canDestroy, $shieldBlockingTick);
})();
}