TerraFirmaCraft

TerraFirmaCraft

2M Downloads

Can't access containers in spectator mode

Omri100 opened this issue ยท 3 comments

commented

While Chests function as normal in spectator mode (can access, cant interact with content), one cannot access any other tfc containers: Vessels, Barrels, Anvils, Crucibles etc.

To Reproduce
attempt to access aformentioned containers in spectator mode (gamemode 3)

Meta Info

  • TFC Version: 0.27.7.107
  • No other mods included.
commented

TIL this is not a spectator feature, it's a specific thing that chests do to check the gamemode of the opening player. Mojang pls.

commented

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

commented

Seems like the check used for opening while in spectator is IInventory:isUsableByPlayer none of the blocks in TFC use anything related to IInventory other than the chest as it's an extension of the vanilla chest. This doesn't seem easily fixable and seems like an issue across all modded inventories that don't extend base MC related TE's or implement some form of Interface that comes from IInventory.

If someone knows this better than I feel free to add more info to this or point me to another mod that makes it work. Either way, It's not exactly important but would be nice to fix.