Files
2019-02-24 22:29:41 +08:00

21 lines
920 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/monster/EntityIronGolem.java
+++ ../src-work/minecraft/net/minecraft/entity/monster/EntityIronGolem.java
@@ -119,7 +119,7 @@
{
if (entityIn instanceof IMob && !(entityIn instanceof EntityCreeper) && this.getRNG().nextInt(20) == 0)
{
- this.setAttackTarget((EntityLivingBase)entityIn);
+ this.setGoalTarget((EntityLivingBase)entityIn, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true);
}
super.collideWithEntity(entityIn);
@@ -294,7 +294,7 @@
{
if (!this.isPlayerCreated() && this.attackingPlayer != null && this.village != null)
{
- this.village.modifyPlayerReputation(this.attackingPlayer.getName(), -5);
+ this.village.modifyPlayerReputation(this.attackingPlayer.getUniqueID(), -5);
}
super.onDeath(cause);