Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
fix #1224 (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
justliliandev authored Oct 13, 2023
1 parent cf72c80 commit f33d0a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public static void playSound(Level level, BlockPos blockPos, BlockState blockSta
}

public static void setLit(Level level, BlockPos blockPos, BlockState blockState, HypogealImperiumBlockEntity hypogealImperiumBlockEntity) {
if (hypogealImperiumBlockEntity.isLit()) {
BlockState state = hypogealImperiumBlockEntity.getBlockState();
if (hypogealImperiumBlockEntity.isLit() && state.getBlock() instanceof HypogealImperiumBlock) {
level.setBlock(hypogealImperiumBlockEntity.worldPosition, level.getBlockState(hypogealImperiumBlockEntity.worldPosition).setValue(HypogealImperiumBlock.LIT, hypogealImperiumBlockEntity.isLit()), 3);
hypogealImperiumBlockEntity.setChanged();
}
Expand Down

0 comments on commit f33d0a8

Please sign in to comment.