mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-28 02:01:36 +01:00
parent
216b061172
commit
938f0c3b66
@ -588,7 +588,7 @@ public void onBlockSpread(BlockSpreadEvent event) {
|
||||
}
|
||||
}
|
||||
|
||||
if (newType == Material.BUDDING_AMETHYST || newType == Material.POINTED_DRIPSTONE) {
|
||||
if (Materials.isAmethystGrowth(newType) || newType == Material.POINTED_DRIPSTONE) {
|
||||
if (wcfg.disableRockGrowth) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
@ -1708,4 +1708,12 @@ public static boolean isUnwaxedCopper(Material type) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isAmethystGrowth(Material mat) {
|
||||
return mat == Material.BUDDING_AMETHYST
|
||||
|| mat == Material.AMETHYST_CLUSTER
|
||||
|| mat == Material.LARGE_AMETHYST_BUD
|
||||
|| mat == Material.MEDIUM_AMETHYST_BUD
|
||||
|| mat == Material.SMALL_AMETHYST_BUD;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user