From b90ae4069d88736e919be213c5678e5d9d602852 Mon Sep 17 00:00:00 2001 From: XiaoMoMi Date: Thu, 3 Jul 2025 17:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=9A=84=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/momirealms/craftengine/bukkit/util/InteractUtils.java | 4 ++++ .../java/net/momirealms/craftengine/core/block/BlockKeys.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bukkit/src/main/java/net/momirealms/craftengine/bukkit/util/InteractUtils.java b/bukkit/src/main/java/net/momirealms/craftengine/bukkit/util/InteractUtils.java index 345d00e01..fcc5b9c9b 100644 --- a/bukkit/src/main/java/net/momirealms/craftengine/bukkit/util/InteractUtils.java +++ b/bukkit/src/main/java/net/momirealms/craftengine/bukkit/util/InteractUtils.java @@ -130,6 +130,10 @@ public class InteractUtils { registerInteraction(BlockKeys.PALE_OAK_BUTTON, (player, item, blockState, result) -> true); registerInteraction(BlockKeys.MANGROVE_BUTTON, (player, item, blockState, result) -> true); registerInteraction(BlockKeys.BAMBOO_BUTTON, (player, item, blockState, result) -> true); + registerInteraction(BlockKeys.STONE_BUTTON, (player, item, blockState, result) -> true); + registerInteraction(BlockKeys.POLISHED_BLACKSTONE_BUTTON, (player, item, blockState, result) -> true); + registerInteraction(BlockKeys.CRIMSON_BUTTON, (player, item, blockState, result) -> true); + registerInteraction(BlockKeys.WARPED_BUTTON, (player, item, blockState, result) -> true); registerInteraction(BlockKeys.OAK_TRAPDOOR, (player, item, blockState, result) -> true); registerInteraction(BlockKeys.SPRUCE_TRAPDOOR, (player, item, blockState, result) -> true); registerInteraction(BlockKeys.BIRCH_TRAPDOOR, (player, item, blockState, result) -> true); diff --git a/core/src/main/java/net/momirealms/craftengine/core/block/BlockKeys.java b/core/src/main/java/net/momirealms/craftengine/core/block/BlockKeys.java index d4d5b0b63..fba210d01 100644 --- a/core/src/main/java/net/momirealms/craftengine/core/block/BlockKeys.java +++ b/core/src/main/java/net/momirealms/craftengine/core/block/BlockKeys.java @@ -107,6 +107,10 @@ public final class BlockKeys { public static final Key PALE_OAK_BUTTON = Key.of("minecraft:pale_oak_button"); public static final Key MANGROVE_BUTTON = Key.of("minecraft:mangrove_button"); public static final Key BAMBOO_BUTTON = Key.of("minecraft:bamboo_button"); + public static final Key CRIMSON_BUTTON = Key.of("minecraft:crimson_button"); + public static final Key WARPED_BUTTON = Key.of("minecraft:warped_button"); + public static final Key STONE_BUTTON = Key.of("minecraft:stone_button"); + public static final Key POLISHED_BLACKSTONE_BUTTON = Key.of("minecraft:polished_blackstone_button"); public static final Key OAK_TRAPDOOR = Key.of("minecraft:oak_trapdoor"); public static final Key SPRUCE_TRAPDOOR = Key.of("minecraft:spruce_trapdoor");