Compare commits

..

No commits in common. "791c6ada5e4875154c1727fbca3f3742046b9d99" and "1c9d5c110268003c726ee01166bf7693604e3779" have entirely different histories.

2 changed files with 4 additions and 7 deletions

View file

@ -67,11 +67,9 @@ public final class Helper {
var chunk = Helper.getLoadedChunk(level, x, z);
if (chunk != null) {
for (var tilePos : chunk.getBlockEntitiesPos()) {
if (tilePos.distSqr(pos) <= radius * radius) {
var tile = chunk.getBlockEntity(tilePos);
if (tile != null && consumer.apply(tile))
if (tilePos.distSqr(pos) <= radius * radius)
if (consumer.apply(chunk.getBlockEntity(tilePos)))
return true;
}
}
}
}

View file

@ -68,7 +68,7 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
@Override
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.AMOUNT, 0);
}
@ -168,7 +168,7 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
}
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() {
@ -212,5 +212,4 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
this.powderListDirty = false;
this.lastEffect = inhibitedEffect;
}
}