From 98345071621ac8e630b0bd5768a011f202e946aa Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 9 Feb 2019 22:14:22 +0200 Subject: [PATCH] Fixed rainbows rendering on the wrong layer --- .../com/minelittlepony/unicopia/entity/EntityRainbow.java | 5 +++++ .../java/com/minelittlepony/unicopia/power/PowerStomp.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/EntityRainbow.java b/src/main/java/com/minelittlepony/unicopia/entity/EntityRainbow.java index b0236af0..50860a24 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/EntityRainbow.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/EntityRainbow.java @@ -40,6 +40,11 @@ public class EntityRainbow extends EntityWeatherEffect { height = width; } + @Override + public boolean shouldRenderInPass(int pass) { + return pass == 1; + } + @Override public void setPosition(double x, double y, double z) { posX = x; diff --git a/src/main/java/com/minelittlepony/unicopia/power/PowerStomp.java b/src/main/java/com/minelittlepony/unicopia/power/PowerStomp.java index e54f0fd0..24993a90 100644 --- a/src/main/java/com/minelittlepony/unicopia/power/PowerStomp.java +++ b/src/main/java/com/minelittlepony/unicopia/power/PowerStomp.java @@ -25,7 +25,6 @@ import com.minelittlepony.util.vector.VecHelper; import net.minecraft.block.Block; import net.minecraft.block.BlockLeaves; import net.minecraft.block.BlockLog; -import net.minecraft.block.BlockPlanks; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.state.IBlockState;