mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
high quality programming
This commit is contained in:
parent
204007cfd7
commit
472a94a7eb
1 changed files with 0 additions and 2 deletions
|
@ -193,13 +193,11 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
|||
if (this.lastEffect != null) {
|
||||
List<Tuple<Vector3d, Integer>> oldList = powders.get(this.lastEffect);
|
||||
oldList.removeIf(t -> this.getPositionVec().equals(t.getA()));
|
||||
System.out.println("Removing from old list with effect " + this.lastEffect);
|
||||
}
|
||||
ResourceLocation effect = this.getInhibitedEffect();
|
||||
if (effect != null) {
|
||||
List<Tuple<Vector3d, Integer>> newList = powders.get(effect);
|
||||
newList.add(new Tuple<>(this.getPositionVec(), this.getAmount()));
|
||||
System.out.println("Adding to new list with effect " + effect);
|
||||
}
|
||||
this.powderListDirty = false;
|
||||
this.lastEffect = effect;
|
||||
|
|
Loading…
Reference in a new issue