Fix mistake in InventoryAccess grabbing ender chest
This commit is contained in:
@@ -73,7 +73,7 @@ public class InventoryAccess implements IInventoryAccess {
|
|||||||
} catch (ReflectiveOperationException ignored) {}
|
} catch (ReflectiveOperationException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
inv = grabFieldOfTypeFromObject(ISpecialPlayerInventory.class, inventory);
|
inv = grabFieldOfTypeFromObject(expected, inventory);
|
||||||
|
|
||||||
if (expected.isInstance(inv)) {
|
if (expected.isInstance(inv)) {
|
||||||
return expected.cast(inv);
|
return expected.cast(inv);
|
||||||
|
Reference in New Issue
Block a user