SwitchCraftCC / Plethora-Fabric

A peripheral provider for ComputerCraft, ported to Fabric
MIT License
16 stars 11 forks source link

.consume on introspection modules in manipulators does not work if player joined after manipulator loaded #89

Closed Kan18 closed 6 months ago

Kan18 commented 6 months ago

image The consume method on bound introspection module inventories accessed via a manipulator fails sometimes, seemingly when the bound player joins after the manipulator containing the introspection module is initially loaded. It gives the error No player associated with inventory. Possibly related to #85 ?

To reproduce:

  1. Player A and Player B join a server at the same location
  2. Player A binds an introspection module, and puts it in a manipulator next to a computer
  3. Restart the server
  4. Player B joins and loads in, then Player A joins in later
  5. The consume method on the result of getInventory() from the introspection module will error even though Player A is online
Kan18 commented 6 months ago

dupe of #32 😳