Fix babylon weapons not rendering, but the transforms are still off

This commit is contained in:
Vincent Lee committed 2020-02-26 14:15:01 -06:00
1 parent 0e0233a5a6
commit f688cd57de
3 files changed
+5 -3

No files matched your search

@@ -184,7 +184,6 @@ public final class RenderHelper {
ms.scale(xScale, yScale, zScale);
for (int i = 0; i < (f1 + f1 * f1) / 2F * 90F + 30F; i++) {
// todo 1.15 compose the quaternions before multiplying into ms?
ms.multiply(Vector3f.POSITIVE_X.getDegreesQuaternion(random.nextFloat() * 360F));
ms.multiply(Vector3f.POSITIVE_Y.getDegreesQuaternion(random.nextFloat() * 360F));
ms.multiply(Vector3f.POSITIVE_Z.getDegreesQuaternion(random.nextFloat() * 360F));
@@ -41,8 +41,6 @@ import java.util.Random;
public class RenderBabylonWeapon extends EntityRenderer<EntityBabylonWeapon> {
private static final ResourceLocation babylon = new ResourceLocation(LibResources.MISC_BABYLON);
public RenderBabylonWeapon(EntityRendererManager renderManager) {
super(renderManager);
}
@@ -84,6 +84,11 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
return NetworkHooks.getEntitySpawningPacket(this);
}
@Override
public boolean isInRangeToRenderDist(double dist) {
return dist < 64 * 64;
}
@Override
public boolean isImmuneToExplosions() {
return true;