Skip to content

Commit 70c2701

Browse files
committed
this method doesnt need a trycatch
1 parent 6a7b8ab commit 70c2701

File tree

1 file changed

+2
-7
lines changed
  • AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/chunklimits

1 file changed

+2
-7
lines changed

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/chunklimits/BlockLimit.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@ private void sendPlayerNotification(Player player, Material block, int existing,
361361
}
362362
}
363363

364-
private static final Lazy<@Nullable MethodHandle> BLOCK_CAN_BUILD_GET_PLAYER_METHOD = Lazy.of(() -> {
365-
try {
366-
return ReflectionUtil.findMethod(BlockCanBuildEvent.class, "getPlayer", Player.class);
367-
} catch (Throwable t) {
368-
return null;
369-
}
370-
});
364+
private static final Lazy<@Nullable MethodHandle> BLOCK_CAN_BUILD_GET_PLAYER_METHOD = Lazy.of(() ->
365+
ReflectionUtil.findMethod(BlockCanBuildEvent.class, "getPlayer", Player.class));
371366
}

0 commit comments

Comments
 (0)