Update input power blockstate in prototype class
This commit is contained in:
parent
a747846585
commit
ee74638b9f
1 changed files with 1 additions and 1 deletions
|
@ -52,8 +52,8 @@ public abstract class RedstoneBlock extends RotatableBlock
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNeighborChange(BlockState state, LevelReader level, BlockPos pos, BlockPos neighbor) {
|
public void onNeighborChange(BlockState state, LevelReader level, BlockPos pos, BlockPos neighbor) {
|
||||||
|
|
||||||
onRedstone(level, pos, redstoneIsActivated(level, pos));
|
onRedstone(level, pos, redstoneIsActivated(level, pos));
|
||||||
|
state.setValue(INPUT_POWER, redstoneIsActivated(level, pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue