Skip to content

Commit

Permalink
Merge pull request #34 from StateMC/addbulletholedespawnpacket
Browse files Browse the repository at this point in the history
Configure BulletHole Time (client-side)
  • Loading branch information
Protoxy22 authored Aug 6, 2022
2 parents 52df4d9 + 25e0fa9 commit f8dfdf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/modularwarfare/ModConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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() {
Expand Down

0 comments on commit f8dfdf8

Please sign in to comment.