mirror of
https://github.com/GTNewHorizons/ironchest.git
synced 2026-10-26 14:23:55 +00:00
Increase the navigation speed so that it matches vanilla.
* 0.4 is far too slow, but 1.33 also seems a little too fast. Oh well. * Updates the constructor signature of IronChestAIOcelotSit to match the superclass constructor signature.
This commit is contained in:
1 parent
becc1c396c
commit
42299247de
2 files changed
+3
-3
No files matched your search
@@ -6,8 +6,8 @@ import net.minecraft.world.World;
|
||||
|
||||
public class IronChestAIOcelotSit extends EntityAIOcelotSit {
|
||||
|
||||
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2) {
|
||||
super(par1EntityOcelot, par2);
|
||||
public IronChestAIOcelotSit(EntityOcelot ocelot, double navigationSpeed) {
|
||||
super(ocelot, navigationSpeed);
|
||||
}
|
||||
|
||||
@Override public boolean func_151486_a(World world, int x, int y, int z) {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class OcelotsSitOnChestsHandler {
|
||||
for (EntityAITasks.EntityAITaskEntry task : tasks) {
|
||||
if (task.priority == 6 && (task.action instanceof EntityAIOcelotSit)
|
||||
&& !(task.action instanceof IronChestAIOcelotSit)) {
|
||||
task.action = new IronChestAIOcelotSit(ocelot, 0.4F);
|
||||
task.action = new IronChestAIOcelotSit(ocelot, 1.33D);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user