Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Nov 25, 2024
1 parent 090742d commit 097bff1
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public void onPlayerInteractEvent(final PlayerInteractEvent event) {
return;
}

if (event.getAction() == Action.PHYSICAL
&& (material == Material.TRIPWIRE
|| material == Material.STONE_PRESSURE_PLATE
|| material == Material.OAK_PRESSURE_PLATE
|| material == Material.LIGHT_WEIGHTED_PRESSURE_PLATE
|| material == Material.HEAVY_WEIGHTED_PRESSURE_PLATE)) {
ListenersUtils.checkPermission(player.getLocation(), player, PermissionsIsland.REDSTONE, event);
return;
}
if (event.getAction() == Action.PHYSICAL
&& (material == Material.TRIPWIRE
|| material.name().contains("PRESSURE_PLATE"))) {
Expand Down

0 comments on commit 097bff1

Please sign in to comment.