Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
fix optional (#801)
Browse files Browse the repository at this point in the history
fix optional
  • Loading branch information
Glease authored Dec 13, 2023
1 parent 3535f19 commit 0bea670
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public boolean onBlockActivated(final World world, final int x, final int y, fin
}

final TileEntity te = world.getTileEntity(x, y, z);
if ((te != null) && (te instanceof TileEntityProjectTable)) {
if (te instanceof TileEntityProjectTable) {
if (!holdingWrench) {
player.openGui(GTplusplus.instance, 0, world, x, y, z);
return true;
Expand Down Expand Up @@ -130,7 +130,6 @@ public static boolean isWrench(final ItemStack item) {
return false;
}

@Optional.Method(modid = Mods.Names.ENDER_I_O)
private static boolean checkEnderIOWrench(final ItemStack item) {
if (ReflectionUtils.doesClassExist("crazypants.enderio.api.tool.ITool")) {
Class<?> wrenchClass;
Expand All @@ -142,7 +141,6 @@ private static boolean checkEnderIOWrench(final ItemStack item) {
return false;
}

@Optional.Method(modid = "Buildcraft")
private static boolean checkBuildcraftWrench(final ItemStack item) {
if (ReflectionUtils.doesClassExist("buildcraft.api.tools.IToolWrench")) {
Class<?> wrenchClass;
Expand Down

0 comments on commit 0bea670

Please sign in to comment.