Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Add back missing method #releaseBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Jun 30, 2018
1 parent c40c051 commit a17a426
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ configurations {
compile.extendsFrom shade
}

version = "3.9.1"
version = "3.9.2"

def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/reborncore/common/util/ItemUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,12 @@ public static double getPowerForDurabilityBar(ItemStack stack) {
double energy = (double) capEnergy.getEnergyStored();
double maxEnergy = (double) capEnergy.getMaxEnergyStored();
return energy / maxEnergy;
}
}

public static boolean isActive(ItemStack stack) {
if (!stack.isEmpty() && stack.getTagCompound() != null && stack.getTagCompound().getBoolean("isActive")) {
return true;
}
return false;
}
}

0 comments on commit a17a426

Please sign in to comment.