mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 13:14:44 +02:00
Fix compiler errors
This commit is contained in:
@ -97,12 +97,11 @@ public class Herbalism {
|
||||
}
|
||||
} else {
|
||||
//Check the block itself first
|
||||
if(!mcMMO.getPlaceStore().isTrue(block))
|
||||
{
|
||||
if (!mcMMO.getPlaceStore().isTrue(block)) {
|
||||
dropAmount++;
|
||||
|
||||
if(herbalismManager.checkDoubleDrop(blockState))
|
||||
bonusDropAmount+=bonusAdd;
|
||||
if (herbalismManager.checkDoubleDrop(blockState))
|
||||
bonusDropAmount += bonusAdd;
|
||||
} else {
|
||||
mcMMO.getPlaceStore().setFalse(blockState);
|
||||
}
|
||||
@ -120,8 +119,8 @@ public class Herbalism {
|
||||
} else {
|
||||
dropAmount++;
|
||||
|
||||
if(herbalismManager.checkDoubleDrop(relativeBlock.getState()))
|
||||
bonusDropAmount+=bonusAdd;
|
||||
if (herbalismManager.checkDoubleDrop(relativeBlock.getState()))
|
||||
bonusDropAmount += bonusAdd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -249,11 +249,9 @@ public class TamingManager extends SkillManager {
|
||||
}
|
||||
|
||||
public void attackTarget(LivingEntity target) {
|
||||
if(target instanceof Tameable)
|
||||
{
|
||||
if (target instanceof Tameable) {
|
||||
Tameable tameable = (Tameable) target;
|
||||
if(tameable.getOwner() == getPlayer())
|
||||
{
|
||||
if (tameable.getOwner() == getPlayer()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user