Skip to content

Implement skinUsesKeyedProperties for 1.19.3+#3548

Open
Pix3lPirat3 wants to merge 8 commits intoPrismarineJS:masterfrom
Pix3lPirat3:extractSkinInformation-patch
Open

Implement skinUsesKeyedProperties for 1.19.3+#3548
Pix3lPirat3 wants to merge 8 commits intoPrismarineJS:masterfrom
Pix3lPirat3:extractSkinInformation-patch

Conversation

@Pix3lPirat3
Copy link
Copy Markdown
Contributor

@Pix3lPirat3 Pix3lPirat3 commented Jan 9, 2025

player_info packet uses the key field for skin properties instead of name, Applies to Minecraft 1.19.3 and above.
awaiting response to PrismarineJS/minecraft-data#971

Also added a fix on servers that send extra properties which results in a JSON crash

Pix3lPirat3 and others added 7 commits January 8, 2025 16:56
player_info packet uses the key field for skin properties instead of name, Applies to Minecraft 1.19.3 and above
Patches an issue if the properties field passed to extractSkinInformation had extra fields it would fail to parse as JSON

[
    {
        "key": "cmlang",
        "value": "val",
        "signature": "null"
    },
    {
        "key": "lang_id",
        "value": "ru_RU",
        "signature": "8492534228807161"
    },
    {
        "key": "textures",
        "value": "e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjY3MTY4NjIxZmRiMGNmM2Y3ZTU3Y2I1MTY2ZDQ4ZTllOWM4N2Q2Nzc0OTQzMzlmM2I4ZmVlYzhjM2EzNmIifX19",
        "signature": "H6Jo2IPL+9oc1RX9EjTwiGx1g36vwKE4s0Oi0/7xwpoy16+NmkF/JvVaGHe1qzef8aTKwa4CtcN0uh8B62xovaPgW/iBqzmVimYS0Z9Ehyzt2atf+rb23VLEHuzbi82gDeM0FP9pG0iqZj8eGzCfSvTp1RGjDiNJv7vB9QiNvzsF3ZLwNRo/1Bc73Wmn//1EkYkwRorecEQhnrsQSlemXP0bW+Q9PByFZfJZyhMXFDtbi+q/DAyPGZUnHqMr1i5sum9xr0un9PduLVR/GR1OMJXplevvGLYVJezWlL1jIYy2pNv3MaCBFW5ZgHP/pzaW4biMBcixWy4a5TE/HctQeOQ8yx4veSKBth193YqqHunqhQP1ZwO+XcdE8l4qibxOY4e2VD2ltc9lt4O9xU4z63YfdcPXHkBQSOhxfkXZF6QX1UhEhPpQiL6X5+pqoAXU85qbFT3g8K3caDwGDiM6ZSP+NyVm5W7RdWD1VPMhpW1klsPQr9PXSH5oIW2gADz7+YnFHzOnm2oFE0EhmWl0sN8RLDJkr+vGItz9r8EHoAFI0anEk5YE9wE7XHkSI90BUmpOXeGtchtuwpkc+WI1ErmwGPbZTsUlVqlv2xIEQ5e6IE9AIyzU3RRssEto/P1xpfRiGkmMxJqNHWG+hSj0Ks6eDzRci51PfczZSs/WjUo="
    }
]
@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Mar 18, 2025

Can you add a test ?

@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Mar 18, 2025

Stuck on PrismarineJS/minecraft-data#971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants