Slime size fix

This commit is contained in:
paulevsGitch 2020-10-08 22:55:48 +03:00
parent 83320b2df3
commit c9cdea122f
3 changed files with 17 additions and 4 deletions

View file

@ -49,6 +49,7 @@ public class EntityEndSlime extends SlimeEntity {
if (BiomeRegistry.getFromBiome(world.getBiome(getBlockPos())) == BiomeRegistry.FOGGY_MUSHROOMLAND) {
this.setMossy(true);
}
this.calculateDimensions();
return data;
}
@ -87,6 +88,7 @@ public class EntityEndSlime extends SlimeEntity {
slimeEntity.setAiDisabled(bl);
slimeEntity.setInvulnerable(this.isInvulnerable());
((ISlime) slimeEntity).setSlimeSize(j, true);
slimeEntity.calculateDimensions();
slimeEntity.refreshPositionAndAngles(this.getX() + (double) g, this.getY() + 0.5D, this.getZ() + (double) h, this.random.nextFloat() * 360.0F, 0.0F);
this.world.spawnEntity(slimeEntity);
}