mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-22 16:05:03 +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) {}
|
} catch (NoSuchMethodException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use {@link #isUsable()}
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static boolean isUseable() {
|
public static boolean isUseable() {
|
||||||
|
return isUsable();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isUsable() {
|
||||||
return craftInventory != null && getInventory != null;
|
return craftInventory != null && getInventory != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class InternalAccessor {
|
||||||
Class.forName("com.lishid.openinv.internal." + this.version + ".SpecialEnderChest");
|
Class.forName("com.lishid.openinv.internal." + this.version + ".SpecialEnderChest");
|
||||||
this.playerDataManager = this.createObject(IPlayerDataManager.class, "PlayerDataManager");
|
this.playerDataManager = this.createObject(IPlayerDataManager.class, "PlayerDataManager");
|
||||||
this.anySilentContainer = this.createObject(IAnySilentContainer.class, "AnySilentContainer");
|
this.anySilentContainer = this.createObject(IAnySilentContainer.class, "AnySilentContainer");
|
||||||
this.supported = InventoryAccess.isUseable();
|
this.supported = InventoryAccess.isUsable();
|
||||||
} catch (Exception ignored) {}
|
} catch (Exception ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue