mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
== is faster than .equals() for enums.
This commit is contained in:
@ -42,7 +42,7 @@ public enum ToolType {
|
||||
return ItemChecks.isAxe(is);
|
||||
|
||||
case FISTS:
|
||||
return is.getType().equals(Material.AIR);
|
||||
return is.getType() == Material.AIR;
|
||||
|
||||
case HOE:
|
||||
return ItemChecks.isHoe(is);
|
||||
|
Reference in New Issue
Block a user