mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-27 13:38:34 +01:00
Compare commits
No commits in common. "791c6ada5e4875154c1727fbca3f3742046b9d99" and "1c9d5c110268003c726ee01166bf7693604e3779" have entirely different histories.
791c6ada5e
...
1c9d5c1102
2 changed files with 4 additions and 7 deletions
|
@ -67,11 +67,9 @@ public final class Helper {
|
||||||
var chunk = Helper.getLoadedChunk(level, x, z);
|
var chunk = Helper.getLoadedChunk(level, x, z);
|
||||||
if (chunk != null) {
|
if (chunk != null) {
|
||||||
for (var tilePos : chunk.getBlockEntitiesPos()) {
|
for (var tilePos : chunk.getBlockEntitiesPos()) {
|
||||||
if (tilePos.distSqr(pos) <= radius * radius) {
|
if (tilePos.distSqr(pos) <= radius * radius)
|
||||||
var tile = chunk.getBlockEntity(tilePos);
|
if (consumer.apply(chunk.getBlockEntity(tilePos)))
|
||||||
if (tile != null && consumer.apply(tile))
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void defineSynchedData() {
|
protected void defineSynchedData() {
|
||||||
this.entityData.define(EntityEffectInhibitor.INHIBITED_EFFECT, "");
|
this.entityData.define(EntityEffectInhibitor.INHIBITED_EFFECT, null);
|
||||||
this.entityData.define(EntityEffectInhibitor.COLOR, 0);
|
this.entityData.define(EntityEffectInhibitor.COLOR, 0);
|
||||||
this.entityData.define(EntityEffectInhibitor.AMOUNT, 0);
|
this.entityData.define(EntityEffectInhibitor.AMOUNT, 0);
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInhibitedEffect(ResourceLocation effect) {
|
public void setInhibitedEffect(ResourceLocation effect) {
|
||||||
this.entityData.set(EntityEffectInhibitor.INHIBITED_EFFECT, effect != null ? effect.toString() : "");
|
this.entityData.set(EntityEffectInhibitor.INHIBITED_EFFECT, effect != null ? effect.toString() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getColor() {
|
public int getColor() {
|
||||||
|
@ -212,5 +212,4 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
||||||
this.powderListDirty = false;
|
this.powderListDirty = false;
|
||||||
this.lastEffect = inhibitedEffect;
|
this.lastEffect = inhibitedEffect;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue