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:
@ -106,7 +106,7 @@ public class SuperBreakerEventHandler {
|
||||
private void calculateDurabilityLoss() {
|
||||
this.durabilityLoss = Misc.toolDurabilityLoss;
|
||||
|
||||
if (blockType.equals(Material.OBSIDIAN)) {
|
||||
if (blockType == Material.OBSIDIAN) {
|
||||
durabilityLoss = durabilityLoss * 5;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user