client config rewrite

This commit is contained in:
Jenny committed 2025-02-12 13:19:18 +01:00
1 parent 5c5ab8c3dc
commit 89a7ea18db
9 files changed
+22 -34

No files matched your search

@@ -1,5 +1,6 @@
package com.jenny.enhancedexplosives.entities.arrows;
import com.jenny.enhancedexplosives.config.ConfigClient;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.AbstractArrow;
@@ -26,7 +27,7 @@ public class baseArrow extends AbstractArrow {
public void tick() {
super.tick();
if (this.level().isClientSide) {
if (!this.inGround) {
if (!this.inGround && ConfigClient.arrowParticles.get()) {
spawnParticles(0);
}
this.tick++;
@@ -1,6 +1,5 @@
package com.jenny.enhancedexplosives.entities.client;
import com.jenny.enhancedexplosives.config.ConfigClient;
import com.jenny.enhancedexplosives.entities.tnt.basePrimedTNT;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Axis;
@@ -1,8 +1,6 @@
package com.jenny.enhancedexplosives.entities.client;
import com.jenny.enhancedexplosives.entities.arrows.baseArrow;
import com.jenny.enhancedexplosives.config.*;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Axis;
import net.minecraft.client.renderer.MultiBufferSource;
@@ -13,7 +11,6 @@ import net.minecraft.client.renderer.entity.TntMinecartRenderer;
import net.minecraft.client.renderer.texture.TextureAtlas;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.block.Blocks;
import org.jetbrains.annotations.NotNull;
public class TNTArrowRenderer extends EntityRenderer<baseArrow> {
@@ -2,7 +2,6 @@ package com.jenny.enhancedexplosives.entities.throwable;
import com.jenny.enhancedexplosives.entities.entities;
import com.jenny.enhancedexplosives.entities.tnt.basePrimedTNT;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.util.Mth;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
@@ -67,7 +67,7 @@ public abstract class basePrimedTNT extends Entity implements TraceableEntity {
public void tick() {
if (level().isClientSide) {
if (ConfigClient.tntParticles) {
if (ConfigClient.tntParticles.get()) {
spawnParticles();
}
}