Skip to content

Commit

Permalink
Try-Catched API exceptions for the mods that use them
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Dec 21, 2018
1 parent 6c0e392 commit e7a12f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
mod_version=1.12.0
mod_version=1.12.1
minecraft_version=1.12.2
teslacorelib_version=1.0.15.+
teslacorelib_mc_version=1.12.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ public static boolean removeBioReactorEntry(ItemStack stack) {
* @param entry The LaserEntry entry to add.
* @return true if it is added, false if don't.
*/
@Deprecated
public static boolean addLaserDrillEntry(LaserDrillEntry entry) {
throw new UnsupportedOperationException("Deprecated API Method since v1.12.0, use the new config for the Laser Drill located in config/laser_drill_ores");
try {
throw new UnsupportedOperationException("Deprecated API Method since v1.12.0, use the new config for the Laser Drill located in config/laser_drill_ores");
} catch (Exception e) {
e.printStackTrace();
}
return false;
}

/**
Expand All @@ -77,8 +83,14 @@ public static boolean addLaserDrillEntry(LaserDrillEntry entry) {
* @param stack The ItemStack of a LaserDrill entry to remove.
* @return true if it is removed, false if don't.
*/
@Deprecated
public static boolean removeLaserDrillEntry(ItemStack stack) {
throw new UnsupportedOperationException("Deprecated API Method since v1.12.0, use the new config for the Laser Drill located in config/laser_drill_ores");
try {
throw new UnsupportedOperationException("Deprecated API Method since v1.12.0, use the new config for the Laser Drill located in config/laser_drill_ores");
} catch (Exception e) {
e.printStackTrace();
}
return false;
}

/**
Expand Down

0 comments on commit e7a12f5

Please sign in to comment.