@@ -12,12 +12,12 @@
|
||||
public class PathfinderGoalTame extends PathfinderGoal {
|
||||
|
||||
private final EntityHorseAbstract horse;
|
||||
@@ -62,7 +67,7 @@
|
||||
@@ -63,7 +68,7 @@
|
||||
int i = this.horse.getTemper();
|
||||
int j = this.horse.getMaxTemper();
|
||||
|
||||
- if (j > 0 && this.horse.getRandom().nextInt(j) < i) {
|
||||
+ if (j > 0 && this.horse.getRandom().nextInt(j) < i && !CraftEventFactory.callEntityTameEvent(this.horse, ((CraftHumanEntity) this.horse.getBukkitEntity().getPassenger()).getHandle()).isCancelled()) { // CraftBukkit - fire EntityTameEvent
|
||||
this.horse.tameWithName((EntityHuman) entity);
|
||||
this.horse.tameWithName(entityhuman);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user