File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/net/onelitefeather/bettergopaint/listeners Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments