mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed twittermites and magic beams appearing invisible with sodium
This commit is contained in:
parent
276e2f2b2a
commit
986c4a5f85
3 changed files with 7 additions and 6 deletions
|
@ -87,7 +87,7 @@ public class HydrophobicSpell extends AbstractSpell {
|
|||
}
|
||||
});
|
||||
|
||||
if (source.getMaster().age % 200 == 0) {
|
||||
if (source.getEntity().age % 200 == 0) {
|
||||
source.playSound(SoundEvents.BLOCK_BEACON_AMBIENT, 0.5F);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,11 +23,13 @@ public final class RenderLayers extends RenderLayer {
|
|||
.build(false));
|
||||
|
||||
private static final Function<Integer, RenderLayer> MAGIC_COLORIN_FUNC = Util.memoize(color -> {
|
||||
return of("magic_colored_" + color, VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL,
|
||||
VertexFormat.DrawMode.QUADS, 256, true, true, MultiPhaseParameters.builder()
|
||||
return of("magic_colored_" + color,
|
||||
VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL,
|
||||
VertexFormat.DrawMode.QUADS, 256, true, true,
|
||||
MultiPhaseParameters.builder()
|
||||
.shader(COLOR_SHADER)
|
||||
.transparency(TRANSLUCENT_TRANSPARENCY)
|
||||
.target(TRANSLUCENT_TARGET)
|
||||
// .target(TRANSLUCENT_TARGET)
|
||||
.texturing(solid(Color.r(color), Color.g(color), Color.b(color), 0.6F))
|
||||
.build(false));
|
||||
});
|
||||
|
|
|
@ -3,8 +3,7 @@ package com.minelittlepony.unicopia.client.render.entity;
|
|||
import com.minelittlepony.unicopia.client.particle.SphereModel;
|
||||
import com.minelittlepony.unicopia.client.render.RenderLayers;
|
||||
import com.minelittlepony.unicopia.entity.FairyEntity;
|
||||
|
||||
import net.minecraft.client.render.VertexConsumer;
|
||||
import net.minecraft.client.render.*;
|
||||
import net.minecraft.client.render.entity.EntityRendererFactory;
|
||||
import net.minecraft.client.render.entity.MobEntityRenderer;
|
||||
import net.minecraft.client.render.entity.model.EntityModel;
|
||||
|
|
Loading…
Reference in a new issue