Fix powered being true when placing pressure plate

This commit is contained in:
DBotThePony 2022-10-01 22:13:54 +07:00
parent c6924eadc4
commit 65db3edc88
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -33,6 +33,10 @@ class TritaniumPressurePlate : BasePressurePlateBlock(Properties.of(Material.MET
p_49818_.add(TranslatableComponent("$descriptionId.description1").withStyle(ChatFormatting.DARK_GRAY)) p_49818_.add(TranslatableComponent("$descriptionId.description1").withStyle(ChatFormatting.DARK_GRAY))
} }
init {
registerDefaultState(stateDefinition.any().setValue(BlockStateProperties.POWERED, false))
}
override fun createBlockStateDefinition(p_49915_: StateDefinition.Builder<Block, BlockState>) { override fun createBlockStateDefinition(p_49915_: StateDefinition.Builder<Block, BlockState>) {
super.createBlockStateDefinition(p_49915_) super.createBlockStateDefinition(p_49915_)
p_49915_.add(BlockStateProperties.POWERED) p_49915_.add(BlockStateProperties.POWERED)