From 65db3edc884e9e83deb977b04f7f5bca7ac0d551 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 1 Oct 2022 22:13:54 +0700 Subject: [PATCH] Fix powered being true when placing pressure plate --- .../ru/dbotthepony/mc/otm/block/TritaniumPressurePlate.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/TritaniumPressurePlate.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/TritaniumPressurePlate.kt index 59d69ae73..9792bd6a6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/TritaniumPressurePlate.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/TritaniumPressurePlate.kt @@ -33,6 +33,10 @@ class TritaniumPressurePlate : BasePressurePlateBlock(Properties.of(Material.MET 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) { super.createBlockStateDefinition(p_49915_) p_49915_.add(BlockStateProperties.POWERED)