diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-10-12 18:12:44 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-10-12 21:12:12 +0300 |
commit | b324f810c5f84b6425f57d055d5d5f9bf81e2b6d (patch) | |
tree | bb0e66912a2148e9b1b05d11d8bdc62583c3a780 /src/main/java/shcm/shsupercm/fabric/citresewn/pack | |
parent | 8451c905f4aa1f3c4ea505de5bbf214231e0043e (diff) | |
download | CITResewn-b324f810c5f84b6425f57d055d5d5f9bf81e2b6d.tar.gz CITResewn-b324f810c5f84b6425f57d055d5d5f9bf81e2b6d.tar.bz2 CITResewn-b324f810c5f84b6425f57d055d5d5f9bf81e2b6d.zip |
Fixed some issues with enchantment glints applying when they shouldnt
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITEnchantment.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITEnchantment.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITEnchantment.java index 3c063db..cce2f29 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITEnchantment.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITEnchantment.java @@ -2,13 +2,8 @@ package shcm.shsupercm.fabric.citresewn.pack.cits; import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.*; -import net.minecraft.entity.LivingEntity; -import net.minecraft.item.ItemStack; import net.minecraft.resource.ResourceType; import net.minecraft.util.Identifier; -import net.minecraft.world.World; -import shcm.shsupercm.fabric.citresewn.ActiveCITs; -import shcm.shsupercm.fabric.citresewn.CITResewn; import shcm.shsupercm.fabric.citresewn.ex.CITParseException; import shcm.shsupercm.fabric.citresewn.mixin.citenchantment.BufferBuilderStorageAccessor; import shcm.shsupercm.fabric.citresewn.mixin.citenchantment.RenderPhaseAccessor; @@ -20,6 +15,7 @@ import java.util.function.Supplier; public class CITEnchantment extends CIT { public static List<CITEnchantment> appliedContext = null; + public static boolean shouldApply = false; public final Identifier textureIdentifier; public final float speed, rotation, duration; @@ -162,7 +158,7 @@ public class CITEnchantment extends CIT { } public VertexConsumer tryApply(VertexConsumer base, VertexConsumerProvider provider) { - if (appliedContext == null) + if (!shouldApply || appliedContext == null) return null; VertexConsumer applied = VertexConsumers.union(appliedContext.stream() |