diff --git a/src/main/java/com/modularwarfare/ModConfig.java b/src/main/java/com/modularwarfare/ModConfig.java index fa076822..cce4b0ab 100644 --- a/src/main/java/com/modularwarfare/ModConfig.java +++ b/src/main/java/com/modularwarfare/ModConfig.java @@ -35,6 +35,7 @@ public static class Shots { public static class Guns { public boolean guns_interaction_hand = true; public boolean render_weapon_on_back = true; + public int bullet_hole_despawn_time = 10; } //drops diff --git a/src/main/java/com/modularwarfare/common/entity/decals/EntityBulletHole.java b/src/main/java/com/modularwarfare/common/entity/decals/EntityBulletHole.java index bd665aca..f9caf235 100644 --- a/src/main/java/com/modularwarfare/common/entity/decals/EntityBulletHole.java +++ b/src/main/java/com/modularwarfare/common/entity/decals/EntityBulletHole.java @@ -1,5 +1,6 @@ package com.modularwarfare.common.entity.decals; +import com.modularwarfare.ModConfig; import com.modularwarfare.ModularWarfare; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; @@ -8,7 +9,7 @@ public class EntityBulletHole extends EntityDecal { public EntityBulletHole(World worldIn) { super(worldIn); - this.maxTimeAlive = 200; + this.maxTimeAlive = ModConfig.INSTANCE.guns.bullet_hole_despawn_time*20; } public ResourceLocation getDecalTexture() {