mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Flip the order to short-circuit faster.
This commit is contained in:
parent
3550c25b7d
commit
aad14169fb
@ -196,7 +196,7 @@ public class Herbalism {
|
|||||||
if (chance > Misc.getRandom().nextInt(activationChance)) {
|
if (chance > Misc.getRandom().nextInt(activationChance)) {
|
||||||
Location location = block.getLocation();
|
Location location = block.getLocation();
|
||||||
|
|
||||||
if (herbalismBlock != null && dropItem != null && herbalismBlock.canDoubleDrop()) {
|
if (dropItem != null && herbalismBlock != null && herbalismBlock.canDoubleDrop()) {
|
||||||
Misc.dropItems(location, dropItem, dropAmount);
|
Misc.dropItems(location, dropItem, dropAmount);
|
||||||
}
|
}
|
||||||
else if (customBlock != null){
|
else if (customBlock != null){
|
||||||
|
Loading…
Reference in New Issue
Block a user