Skip to content

Commit 437f1b0

Browse files
author
m2en
committed
fix: 苗木の下の土を破壊できる問題の修正
1 parent 6f49293 commit 437f1b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/net/azisaba/afnw/afnwcore2/listeners/block/SaplingBreakCanceller.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ public void onBreakCrops(BlockBreakEvent e) {
6262
Player p = e.getPlayer();
6363
Block b = e.getBlock();
6464

65-
if (!Tag.CROPS.isTagged(b.getLocation().add(0, 1, 0).getBlock().getType())) {
66-
return;
67-
}
65+
if (!(Tag.SAPLINGS.isTagged(b.getLocation().add(0, 1, 0).getBlock().getType()))) {
66+
return;
67+
}
68+
6869
if (p.hasPermission("afnw.bypass.break.arable")) {
6970
p.sendMessage(Component.text("耕地保護機能を回避しました。").color(NamedTextColor.GOLD));
7071
return;

0 commit comments

Comments
 (0)