Various Slime Fixes (#243)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
ohentisandMartin Robertz authored and GitHub committed 2026-01-12 03:34:43 +01:00
1 parent 23125422c9
commit bcf7458b9a
3 files changed
+23 -168

No files matched your search

@@ -59,8 +59,8 @@ public class SlimeRender extends RenderLiving {
*/
protected void scaleSlime(SlimeBase par1EdibleSlime, float par2) {
float f1 = (float) par1EdibleSlime.getSlimeSize();
float f2 = (par1EdibleSlime.sizeHeight + (par1EdibleSlime.sizeFactor - par1EdibleSlime.sizeHeight) * par2)
/ (f1 * 0.5F + 1.0F);
float f2 = (par1EdibleSlime.prevSquishFactor
+ (par1EdibleSlime.squishFactor - par1EdibleSlime.prevSquishFactor) * par2) / (f1 * 0.5F + 1.0F);
float f3 = 1.0F / (f2 + 1.0F);
GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}