mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 13:46:10 +03:00
21 lines
920 B
Diff
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);
|