Wolf Armor and Storage Legacy

Wolf Armor and Storage Legacy

19M Downloads

[1.12] Wolf inventory size is not serialized properly between server and client

satyrnidae opened this issue ยท 0 comments

commented

Issue Description
When the server syncs its config to a client, the inventory is written to the NBT tag incorrectly, causing it to end up swapping rows for columns.

Reproduction Steps
Steps to reproduce the behavior:

  1. Start a server with a configured inventory size of 3x2
  2. Start a client with a configured inventory size of 3x2
  3. Enter a client world, spawn, tame, and add a backpack to a wolf
  4. Shift+right click; inventory appears normal (3 columns by 2 rows)
  5. Exit the client world and connect to the server
  6. Spawn, tame, and add a backpack to a wolf
  7. Shift+right click; inventory is now 2 columns by 3 rows

Expected Behavior
The server and client synced inventory size should always be equivalent.

Version Information:

  • OS: Windows 10
  • Java: jdk1.8.0_261
  • Minecraft Version: 1.12.2
  • Forge Version: 14.23.5.2838
  • Mod Version: 3.7.0-alpha

Additional Context
Found during server testing for 3.7.0