Added spawners to illegal drops for blast mining (#5178)

This commit is contained in:
Tommm 2025-05-06 22:07:15 +02:00 committed by GitHub
parent bea283e56c
commit f3a2199fd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,14 +274,15 @@ public class MiningManager extends SkillManager {
/** /**
* Checks if it would be illegal (in vanilla) to obtain the block * Checks if it would be illegal (in vanilla) to obtain the block
* Certain things should never drop (such as budding_amethyst and infested blocks) * Certain things should never drop (such as budding_amethyst, infested blocks or spawners)
* *
* @param material target material * @param material target material
* @return true if it's not legal to get the block through normal gameplay * @return true if it's not legal to get the block through normal gameplay
*/ */
public boolean isDropIllegal(@NotNull Material material) { public boolean isDropIllegal(@NotNull Material material) {
return isInfestedBlock(material.getKey().getKey()) return isInfestedBlock(material.getKey().getKey())
|| material.getKey().getKey().equalsIgnoreCase(BUDDING_AMETHYST); || material.getKey().getKey().equalsIgnoreCase(BUDDING_AMETHYST)
|| material == Material.SPAWNER;
} }
/** /**