Fix mistake in InventoryAccess grabbing ender chest

This commit is contained in:
Jikoo 2020-11-15 12:59:59 -05:00
parent 45de495699
commit b2156edcc7
No known key found for this signature in database
GPG key ID: 37FF68B07F639098

View file

@ -73,7 +73,7 @@ public class InventoryAccess implements IInventoryAccess {
} catch (ReflectiveOperationException ignored) {}
}
inv = grabFieldOfTypeFromObject(ISpecialPlayerInventory.class, inventory);
inv = grabFieldOfTypeFromObject(expected, inventory);
if (expected.isInstance(inv)) {
return expected.cast(inv);