Skip to content

Commit 6a7b8ab

Browse files
committed
rename variable appropriately
1 parent 4173c4a commit 6a7b8ab

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,18 +350,18 @@ private void sendPlayerNotification(Player player, Material block, int existing,
350350
}
351351

352352
private @Nullable Player getPlayer(@NotNull BlockCanBuildEvent event) {
353-
if (BLOCK_CAN_BUILD_PLAYER_FIELD.get() == null) {
353+
if (BLOCK_CAN_BUILD_GET_PLAYER_METHOD.get() == null) {
354354
return null;
355355
}
356356

357357
try {
358-
return (Player) BLOCK_CAN_BUILD_PLAYER_FIELD.get().invoke(event);
358+
return (Player) BLOCK_CAN_BUILD_GET_PLAYER_METHOD.get().invoke(event);
359359
} catch (Throwable t) {
360360
return null;
361361
}
362362
}
363363

364-
private static final Lazy<@Nullable MethodHandle> BLOCK_CAN_BUILD_PLAYER_FIELD = Lazy.of(() -> {
364+
private static final Lazy<@Nullable MethodHandle> BLOCK_CAN_BUILD_GET_PLAYER_METHOD = Lazy.of(() -> {
365365
try {
366366
return ReflectionUtil.findMethod(BlockCanBuildEvent.class, "getPlayer", Player.class);
367367
} catch (Throwable t) {

0 commit comments

Comments
 (0)