mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed ClassCastException with Taming
This commit is contained in:
parent
dc9acbc3c9
commit
4d99fe7230
@ -10,6 +10,7 @@ Key:
|
||||
Version 2.0.00-dev
|
||||
+ Added Ocelots to Taming XP tables
|
||||
+ Added ability to summon Ocelots with Call of the Wild
|
||||
= Fixed ClassCastException from Taming preventDamage checks
|
||||
|
||||
Version 1.3.02
|
||||
+ Added in game guides for Mining, Excavation, and Acrobatics. Simply type /skillname ? to access them
|
||||
|
@ -167,16 +167,6 @@ public class Combat
|
||||
Swords.counterAttackChecks(event);
|
||||
Acrobatics.dodgeChecks(event);
|
||||
}
|
||||
|
||||
/*
|
||||
* DEFENSIVE CHECKS FOR WOLVES
|
||||
*/
|
||||
//else if(target instanceof Wolf)
|
||||
//{
|
||||
// Wolf wolf = (Wolf) target;
|
||||
// if(wolf.isTamed() && (wolf.getOwner() instanceof Player))
|
||||
// Taming.preventDamage(event, pluginx);
|
||||
//}
|
||||
}
|
||||
|
||||
public static void combatAbilityChecks(Player attacker, PlayerProfile PPa)
|
||||
|
@ -309,11 +309,10 @@ public class mcBlockListener implements Listener
|
||||
WoodCutting.leafBlower(player, block);
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(inhand.getTypeId() != 359){
|
||||
event.setInstaBreak(true);
|
||||
WoodCutting.leafBlower(player, block);
|
||||
}
|
||||
else if(inhand.getTypeId() != 359)
|
||||
{
|
||||
event.setInstaBreak(true);
|
||||
WoodCutting.leafBlower(player, block);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class mcEntityListener implements Listener
|
||||
break;
|
||||
case WOLF:
|
||||
Wolf wolf = (Wolf) entity;
|
||||
if((!m.isInvincible(wolf, event)) && wolf.isTamed() && wolf.getOwner() != null)
|
||||
if((!m.isInvincible(wolf, event)) && wolf.isTamed() && (wolf.getOwner() instanceof Player))
|
||||
Taming.preventDamage(event, plugin);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user