mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-23 15:50:30 +02:00
HerbalismBlock could be null here.
This commit is contained in:
@@ -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 (dropItem != null && herbalismBlock.canDoubleDrop()) {
|
if (herbalismBlock != null && dropItem != null && herbalismBlock.canDoubleDrop()) {
|
||||||
Misc.dropItems(location, dropItem, dropAmount);
|
Misc.dropItems(location, dropItem, dropAmount);
|
||||||
}
|
}
|
||||||
else if (customBlock != null){
|
else if (customBlock != null){
|
||||||
|
Reference in New Issue
Block a user