Mojira Archive
MCM-1053

query.armor_texture_slot always returns -1 for players

Partner Rank:

1

Partner Team Reporting:

Everbloom Studios

Verification builds:

1.16.0.63

Summary:

The query.armor_texture_slot now always returns -1 for players, regardless of whatever armor they're wearing. Typically it returns:
-1 for none
0 for leather
1 for chainmail
2 for iron
3 for diamond
4 for gold
5 for elytra
6 for turtle helmet

Now it just returns -1 for all armor types. Still works for non-player entities

Impact:

This is insanely problematic, since we use this heavily to get info from commands on the server directly to the client, by doing /replaceitem and then detecting what type of armor the player is wearing. This breaks the entirety of Be a Dragon (live), as we equip armor to change the player's model and to trigger cutscenes.

Also affects at the very least two upcoming maps of ours that requires the system to know what the player is wearing in their chest and boots slot at all times.

We also don't have a lot of ways to send data from commands to the client, so this bug deals a huge blow to our already limited possibilities. With query.armor_texture slot alone we have around 6^4 possible values which is currently the most efficient way to sync data to the client without hard-coding every single possibility.

Repro Steps:

  1. Open a fresh copy of Be a Dragon
  2. Interact with the door to enter the changing room
  3. Scroll to the right until you've selected an equippable dragon (either dark, fire or green)
  4. Interact with the dragon in front to equip it
  5. Look at your player model and armor slots in the inventory

Observed Results:

The player is still not a dragon and there are armor pieces in the armor slots.

Expected Results:

Your player model should have turned into a dragon and you should have no more armor pieces in your inventory.

Screenshots/Videos attached: Yes/No

No

Regression Builds:

1.16.0.61

Fixed

Energyxxer

2020-05-21, 11:59 PM

2020-05-29, 09:45 PM

2020-05-29, 09:45 PM

0

0

Future Release

-