athrane / bassebombecraft

Bassebombecraft Minecraft Mod
https://www.curseforge.com/minecraft/mc-mods/bassebombecraft
GNU General Public License v3.0
0 stars 0 forks source link

Remove debug logging from Contagion classes #1259

Closed athrane closed 2 years ago

athrane commented 2 years ago

Affected classes:

Contagion2

public Contagion2(Function<Ports, Entity> fnGetSource, Function<Ports, Entity> fnGetTrueSource) {
        this.fnGetSource = fnGetSource;
        this.fnGetTrueSource = fnGetTrueSource;
        aoePorts = getInstance().enableDebug();
        aoeOp = fnAoeCoreOp.apply(fnGetSource, fnGetTrueSource);
    }

ContagionEffect

public void performEffect(LivingEntity entity, int amplifier) {

**Optional<EffectInstance> optInstance = resolveEffectInstance(entity);
BassebombeCraft.getBassebombeCraft().getLogger().debug("optInstance=" + optInstance);**

and:

public ContagionEffect() {
  super(NOT_BAD_POTION_EFFECT, POTION_LIQUID_COLOR);
  aoePorts = getInstance().enableDebug();
}
athrane commented 2 years ago

Resolved with commit: https://github.com/athrane/bassebombecraft/commit/697edf8552c9d3a637cc099cbe606516b51606e0