Jikoo / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
118 stars 38 forks source link

Try to get block state without taking snapshots #234

Closed NewwindServer closed 1 month ago

NewwindServer commented 1 month ago

We need to use reflection for this since the method is only available in paper API, it falls back to the spigot one if spigot is being used. Fixes #233

Jikoo commented 1 month ago

This is something I've had in mind, sorta. I was debating removing the API-only defaults and going back to internals here or using an abstract class that caches type -> state. I don't want to add it to InventoryAccess, so I'll move handling somewhere else before release, but it's good to get this in either way.