Skip to content

[1.20.1-0.7.41r] Memory Card changes #664

@GStefanowich

Description

@GStefanowich

Describe

I updated recently from 1.20.1-0.7.40r to 1.20.1-0.7.41r to fix #642

It seems like the change to Memory Cards is a bit broken

  • Save the owner of the memory card to the inventory manager after a player places the card into the manager and clear the card after. Resolves a security issue where players could eventually steal memory cards from other players

Steps to reproduce

When inserting a bound Memory Card into the Inventory Manager it clears the Memory Card as the feature change says, and saves to the block:

{
  ownerId: [I; -1172986723, 321014915, -1283924489, -1583910946],
  z: 4089,
  x: 9818,
  ForgeCaps: {},
  id: "advancedperipherals:inventory_manager",
  y: -10,
  Items: [
    {
      Slot: 0b,
      id: "advancedperipherals:memory_card",
      tag: {},
      Count: 1b
    }
  ]
}

Removing the blank card afterwards deletes the player link:

{
  z: 4089,
  x: 9818,
  ForgeCaps: {},
  id: "advancedperipherals:inventory_manager",
  y: -10,
  Items: []
}

Without removing the blank card, it appears that after some time, such as leaving and reloading the chunks, or restarting the server, that the Inventory Manager then reads the blank card still present, and also deletes the player link since the card is now "unbound".

Multiplayer?

Yes

Version

1.20.1-0.7.41r (Latest 1.20.1)

Minecraft, Forge and maybe other related mods versions

NeoForge 47.1.106 Minecraft 1.20.1

Screenshots or Videos

No response

Crashlog/log

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions