Skip to content

Commit

Permalink
fix: コンブが凝固できないのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 24, 2023
1 parent d40b1ca commit 70aa653
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,19 @@ object BlockSearching {
relativeVectors.collect {
case XYZTuple(x, y, z) =>
val targetBlock = referencePoint.getRelative(x, y, z)
val waterloggedMaterials = Set(
Material.WATER,
Material.BUBBLE_COLUMN,
Material.TALL_SEAGRASS,
Material.SEAGRASS,
Material.KELP
)

if (BreakUtil.canBreakWithSkill(player, targetBlock, lockedBlocks)) {
if (targetBlock.getType == Material.LAVA) {
lavaBlocks.add(targetBlock)
} else if (
targetBlock.getType == Material.WATER || targetBlock.getType == Material.BUBBLE_COLUMN || targetBlock.getType == Material.TALL_SEAGRASS || targetBlock.getType == Material.SEAGRASS || (targetBlock
waterloggedMaterials.contains(targetBlock.getType) || (targetBlock
.getBlockData
.isInstanceOf[Waterlogged] && ExternalPlugins
.getCoreProtectWrapper
Expand Down

0 comments on commit 70aa653

Please sign in to comment.