mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-05-20 00:36:25 +02:00
Added spawners to illegal drops for blast mining (#5178)
This commit is contained in:
parent
bea283e56c
commit
f3a2199fd6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user