== is faster than .equals() for enums.

This commit is contained in:
GJ
2013-02-04 11:35:52 -05:00
parent 49de6614c0
commit 4aceadd777
7 changed files with 11 additions and 11 deletions

View File

@ -130,7 +130,7 @@ public class Herbalism {
for (int y = 0; y <= 2; y++) {
Block relativeBlock = block.getRelative(BlockFace.UP, y);
if (relativeBlock.getType().equals(blockType) && !mcMMO.placeStore.isTrue(relativeBlock)) {
if (relativeBlock.getType() == blockType && !mcMMO.placeStore.isTrue(relativeBlock)) {
dropAmount++;
}
}