mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
fixed some minor visual issues
This commit is contained in:
parent
f48ebebc1a
commit
246ce3afe1
3 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,9 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
|||
private static final DataParameter<Integer> COLOR = EntityDataManager.createKey(EntityEffectInhibitor.class, DataSerializers.VARINT);
|
||||
private static final DataParameter<Integer> AMOUNT = EntityDataManager.createKey(EntityEffectInhibitor.class, DataSerializers.VARINT);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int renderTicks;
|
||||
|
||||
public EntityEffectInhibitor(World worldIn) {
|
||||
super(worldIn);
|
||||
}
|
||||
|
@ -118,6 +121,7 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
|||
this.world.rand.nextGaussian() * 0.005F,
|
||||
this.getColor(), this.world.rand.nextFloat() * 3F + 1F, 120, 0F, true, true);
|
||||
}
|
||||
this.renderTicks++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public class RenderEffectInhibitor extends Render<EntityEffectInhibitor> {
|
|||
@Override
|
||||
public void doRender(EntityEffectInhibitor entity, double x, double y, double z, float entityYaw, float partialTicks) {
|
||||
GlStateManager.pushMatrix();
|
||||
float time = entity.world.getTotalWorldTime() + entity.getEntityId() + partialTicks;
|
||||
float time = entity.renderTicks + entity.getEntityId() + partialTicks;
|
||||
float bob = (float) Math.sin(time / 10F) * 0.05F;
|
||||
GlStateManager.translate(x, y + 0.15F + bob, z);
|
||||
GlStateManager.rotate((time * 3) % 360, 0F, 1F, 0F);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 562 B |
Loading…
Reference in a new issue