mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 08:00:02 +03:00
28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
--- ../src-base/minecraft/net/minecraft/entity/monster/EntityEvoker.java
|
|
+++ ../src-work/minecraft/net/minecraft/entity/monster/EntityEvoker.java
|
|
@@ -48,11 +48,11 @@
|
|
{
|
|
super.initEntityAI();
|
|
this.tasks.addTask(0, new EntityAISwimming(this));
|
|
- this.tasks.addTask(1, new EntityEvoker.AICastingSpell());
|
|
+ this.tasks.addTask(1, new AICastingSpell());
|
|
this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityPlayer.class, 8.0F, 0.6D, 1.0D));
|
|
- this.tasks.addTask(4, new EntityEvoker.AISummonSpell());
|
|
- this.tasks.addTask(5, new EntityEvoker.AIAttackSpell());
|
|
- this.tasks.addTask(6, new EntityEvoker.AIWololoSpell());
|
|
+ this.tasks.addTask(4, new AISummonSpell());
|
|
+ this.tasks.addTask(5, new AIAttackSpell());
|
|
+ this.tasks.addTask(6, new AIWololoSpell());
|
|
this.tasks.addTask(8, new EntityAIWander(this, 0.6D));
|
|
this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 3.0F, 1.0F));
|
|
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
|
|
@@ -369,7 +369,7 @@
|
|
{
|
|
return false;
|
|
}
|
|
- else if (!EntityEvoker.this.world.getGameRules().getBoolean("mobGriefing"))
|
|
+ else if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(EntityEvoker.this.world, EntityEvoker.this))
|
|
{
|
|
return false;
|
|
}
|