Skip to content

Commit

Permalink
make logic server only
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Sep 13, 2024
1 parent d81e7c0 commit de64e07
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ public void writeCustomNBT(CompoundTag nbt, boolean isClient, HolderLookup.Provi
@SuppressWarnings("resource")
@Override
public void tick() {
BlockState bs = this.getBlockState();
if (bs.getValue(FumaroleVentBlock.HEAT) == 2) {
update.tick();
this.setChanged();
if(getLevel().isClientSide) {
BlockState bs = this.getBlockState();
if (bs.getValue(FumaroleVentBlock.HEAT) == 2) {
update.tick();
this.setChanged();
}
check.tick();
}
check.tick();

}

Expand Down

0 comments on commit de64e07

Please sign in to comment.