@@ -29,19 +29,21 @@ class ResourcePackStackPacket extends DataPacket implements ClientboundPacket{
2929 public bool $ mustAccept = false ;
3030 public string $ baseGameVersion = ProtocolInfo::MINECRAFT_VERSION_NETWORK ;
3131 public Experiments $ experiments ;
32+ public bool $ useVanillaEditorPacks ;
3233
3334 /**
3435 * @generate-create-func
3536 * @param ResourcePackStackEntry[] $resourcePackStack
3637 * @param ResourcePackStackEntry[] $behaviorPackStack
3738 */
38- public static function create (array $ resourcePackStack , array $ behaviorPackStack , bool $ mustAccept , string $ baseGameVersion , Experiments $ experiments ) : self {
39+ public static function create (array $ resourcePackStack , array $ behaviorPackStack , bool $ mustAccept , string $ baseGameVersion , Experiments $ experiments, bool $ useVanillaEditorPacks ) : self {
3940 $ result = new self ;
4041 $ result ->resourcePackStack = $ resourcePackStack ;
4142 $ result ->behaviorPackStack = $ behaviorPackStack ;
4243 $ result ->mustAccept = $ mustAccept ;
4344 $ result ->baseGameVersion = $ baseGameVersion ;
4445 $ result ->experiments = $ experiments ;
46+ $ result ->useVanillaEditorPacks = $ useVanillaEditorPacks ;
4547 return $ result ;
4648 }
4749
@@ -59,6 +61,7 @@ protected function decodePayload(PacketSerializer $in) : void{
5961
6062 $ this ->baseGameVersion = $ in ->getString ();
6163 $ this ->experiments = Experiments::read ($ in );
64+ $ this ->useVanillaEditorPacks = $ in ->getBool ();
6265 }
6366
6467 protected function encodePayload (PacketSerializer $ out ) : void {
@@ -76,6 +79,7 @@ protected function encodePayload(PacketSerializer $out) : void{
7679
7780 $ out ->putString ($ this ->baseGameVersion );
7881 $ this ->experiments ->write ($ out );
82+ $ out ->putBool ($ this ->useVanillaEditorPacks );
7983 }
8084
8185 public function handle (PacketHandlerInterface $ handler ) : bool {
0 commit comments