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

21 lines
744 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/passive/EntitySquid.java
+++ ../src-work/minecraft/net/minecraft/entity/passive/EntitySquid.java
@@ -49,7 +49,7 @@
protected void initEntityAI()
{
- this.tasks.addTask(0, new EntitySquid.AIMoveRandom(this));
+ this.tasks.addTask(0, new AIMoveRandom(this));
}
protected void applyEntityAttributes()
@@ -191,7 +191,7 @@
public boolean getCanSpawnHere()
{
- return this.posY > 45.0D && this.posY < (double)this.world.getSeaLevel() && super.getCanSpawnHere();
+ return this.posY > this.world.spigotConfig.squidSpawnRangeMin && this.posY < (double)this.world.getSeaLevel() && super.getCanSpawnHere();
}
@SideOnly(Side.CLIENT)