fix: infitiy bucket can replace interactive blocks if clicked on block directly next to it
Some checks failed
Gitea Actions Demo / Build-Gradle (push) Failing after 1m46s

This commit is contained in:
Your Name
2025-07-31 21:28:19 +02:00
parent 9f11fef231
commit 4bb38cd893

View File

@@ -130,7 +130,10 @@ public class InfinityWaterBucket implements Listener {
targetBlock.setType(Material.WATER); // refresh water
}
} else {
// Only place water if the target block is replaceable or air
if (targetBlock.isEmpty() || targetBlock.isPassable()) {
targetBlock.setType(Material.WATER);
}
}
}
}