Fix compiler errors

This commit is contained in:
nossr50
2019-05-18 16:25:52 -07:00
parent 04b4a8e069
commit 04fb4c30fe
21 changed files with 79 additions and 433 deletions

View File

@ -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;
}
}
}

View File

@ -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;
}
}