Skip to content

Commit

Permalink
Merge pull request #13 from quat1024/aaaaaa
Browse files Browse the repository at this point in the history
Fix build and add CI so the build won't break again
  • Loading branch information
LemmaEOF authored Aug 12, 2023
2 parents 7e5d122 + 14a7664 commit 1d8f779
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: clean build
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,6 @@ public void readNbt(NbtCompound tag) {
this.renderDirty = true;
}

@Override
public void markDirty() {
PlayerLookup.tracking(this).forEach(player -> player.networkHandler.sendPacket(toUpdatePacket()));
super.markDirty();
}

@Nullable
@Override
public Packet<ClientPlayPacketListener> toUpdatePacket() {
return BlockEntityUpdateS2CPacket.create(this);
}

public String getRawLine(int i) {
var line = this.lines.get(i);

Expand Down Expand Up @@ -149,6 +137,7 @@ public void markRemoved() {
if (world != null && world.isClient) {
BakedBlockEntityRendererManager.markForRebuild(getPos());
}
super.markRemoved();
}

// standard blockentity boilerplate
Expand Down

0 comments on commit 1d8f779

Please sign in to comment.