This commit is contained in:
Jikoo 2020-11-15 13:26:59 -05:00
parent db8b67082b
commit 804d30bcc7
No known key found for this signature in database
GPG key ID: 37FF68B07F639098
2 changed files with 9 additions and 1 deletions

View file

@ -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;
}

View file

@ -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) {}
}