mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-22 07:55:07 +00:00
tpyo
This commit is contained in:
parent
db8b67082b
commit
804d30bcc7
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue