Skip to content

Commit

Permalink
Merge pull request #182 from robotman2412/aura-fix
Browse files Browse the repository at this point in the history
Fix the signal tuning aura for token signals
  • Loading branch information
Edivad99 committed Feb 24, 2024
2 parents 8db6a52 + 6e73612 commit 36edf42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public boolean addPeer(T peer) {
@Override
public boolean removePeer(BlockPos peerPos) {
if (this.peers.remove(peerPos)) {
if (!this.blockEntity.getLevel().isClientSide()) {
this.syncToClient();
}
this.blockEntity.setChanged();
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ private static void renderSignalAura(
var normal = poseStack.last().normal();

for (BlockPos target : endPoints) {
var be = blockEntity.getLevel().getBlockEntity(target);
if (be == null || be.isRemoved()) {
continue;
}

int color = colorProfile.getColor(blockEntity, blockEntity.getBlockPos(), target);
float red = RenderUtil.getRed(color);
float green = RenderUtil.getGreen(color);
Expand Down

0 comments on commit 36edf42

Please sign in to comment.