Skip to content

Commit d92552d

Browse files
committed
Replace enum equals with equals operator
1 parent 864bd24 commit d92552d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/onelitefeather/bettergopaint/listeners/InteractListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void onClick(PlayerInteractEvent event) {
6161
return;
6262
}
6363

64-
if (event.getAction().isLeftClick() && item.getType().equals(Settings.settings().GENERIC.DEFAULT_BRUSH)) {
64+
if (event.getAction().isLeftClick() && item.getType() == Settings.settings().GENERIC.DEFAULT_BRUSH) {
6565
PlayerBrush brush = plugin.getBrushManager().getBrush(player);
6666
player.openInventory(brush.getInventory());
6767
event.setCancelled(true);
@@ -73,7 +73,7 @@ public void onClick(PlayerInteractEvent event) {
7373
}
7474

7575
Location location;
76-
if (event.getAction().equals(Action.RIGHT_CLICK_AIR)) {
76+
if (event.getAction() == Action.RIGHT_CLICK_AIR) {
7777
Block targetBlock = player.getTargetBlockExact(250, FluidCollisionMode.NEVER);
7878
if (targetBlock == null) {
7979
return;

0 commit comments

Comments
 (0)