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

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
Lucera remove redudant parenthesis
Mobius Premium Sylph Extra wrong library import
  • Loading branch information
nightw0lv committed Sep 1, 2021
1 parent ed47bc3 commit 423d3f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Interlude/lucera/src/itopz/com/command/VoteCMD.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static enum VoteSite
// returns protector holder
public FloodProtectorHolder getFloodProtector(final Player player, final VoteSite site)
{
return FLOOD_PROTECTOR.stream().filter(s -> s.getSite() == site && ((s.getIP().equalsIgnoreCase(player.getIP()) || s.getHWID().equalsIgnoreCase(player.getNetConnection().getHwid())))).findFirst().orElseGet(() ->
return FLOOD_PROTECTOR.stream().filter(s -> s.getSite() == site && (s.getIP().equalsIgnoreCase(player.getIP()) || s.getHWID().equalsIgnoreCase(player.getNetConnection().getHwid()))).findFirst().orElseGet(() ->
{
final FloodProtectorHolder holder = new FloodProtectorHolder(site, player);
FLOOD_PROTECTOR.add(holder);
Expand Down Expand Up @@ -184,7 +184,6 @@ public void check(String[] params)
{
VDSThreadPool.schedule(() -> Execute(player, TOPSITE), Random.get(1000, 10000));
}

openWindow(player);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
<orderEntry type="jdk" jdkName="15" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="L2J_Mobius_Premium_Essence_5.0_Sylph" level="project" />
<orderEntry type="library" name="ScionsOfDestiny_Lisvus" level="project" />
</component>
</module>

0 comments on commit 423d3f8

Please sign in to comment.