From 804d30bcc70d4508642d506f5fc40eb928628ecc Mon Sep 17 00:00:00 2001 From: Jikoo Date: Sun, 15 Nov 2020 13:26:59 -0500 Subject: [PATCH] tpyo --- .../java/com/lishid/openinv/util/InventoryAccess.java | 8 ++++++++ .../java/com/lishid/openinv/util/InternalAccessor.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/com/lishid/openinv/util/InventoryAccess.java b/api/src/main/java/com/lishid/openinv/util/InventoryAccess.java index 8a4afe5..9c2ffd7 100644 --- a/api/src/main/java/com/lishid/openinv/util/InventoryAccess.java +++ b/api/src/main/java/com/lishid/openinv/util/InventoryAccess.java @@ -42,7 +42,15 @@ public class InventoryAccess implements IInventoryAccess { } catch (NoSuchMethodException ignored) {} } + /** + * @deprecated use {@link #isUsable()} + */ + @Deprecated public static boolean isUseable() { + return isUsable(); + } + + public static boolean isUsable() { return craftInventory != null && getInventory != null; } diff --git a/plugin/src/main/java/com/lishid/openinv/util/InternalAccessor.java b/plugin/src/main/java/com/lishid/openinv/util/InternalAccessor.java index f7e2648..96f3b7b 100644 --- a/plugin/src/main/java/com/lishid/openinv/util/InternalAccessor.java +++ b/plugin/src/main/java/com/lishid/openinv/util/InternalAccessor.java @@ -44,7 +44,7 @@ public class InternalAccessor { Class.forName("com.lishid.openinv.internal." + this.version + ".SpecialEnderChest"); this.playerDataManager = this.createObject(IPlayerDataManager.class, "PlayerDataManager"); this.anySilentContainer = this.createObject(IAnySilentContainer.class, "AnySilentContainer"); - this.supported = InventoryAccess.isUseable(); + this.supported = InventoryAccess.isUsable(); } catch (Exception ignored) {} }