mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-25 12:25:37 +01:00
Rename #sculk to #sculk_catalyst
This commit is contained in:
parent
3b349c9d07
commit
990f90bab9
@ -33,12 +33,10 @@ public final class BlockSpreadListener extends Queue implements Listener {
|
|||||||
|
|
||||||
BlockState blockstate = event.getNewState();
|
BlockState blockstate = event.getNewState();
|
||||||
Material type = blockstate.getType();
|
Material type = blockstate.getType();
|
||||||
Block block = event.getBlock();
|
|
||||||
|
|
||||||
if (Config.getConfig(event.getBlock().getWorld()).VINE_GROWTH &&
|
if (Config.getConfig(event.getBlock().getWorld()).VINE_GROWTH && (BlockGroup.VINES.contains(type) || BlockGroup.AMETHYST.contains(type) || type == Material.CHORUS_FLOWER || type == Material.BAMBOO)) {
|
||||||
(BlockGroup.VINES.contains(type) || BlockGroup.AMETHYST.contains(type)
|
Block block = event.getBlock();
|
||||||
|| type == Material.CHORUS_FLOWER || type == Material.BAMBOO)) {
|
if (checkCacheData(block, type)) {
|
||||||
if(checkCacheData(block, type)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,13 +70,13 @@ public final class BlockSpreadListener extends Queue implements Listener {
|
|||||||
Queue.queueBlockPlaceDelayed("#bamboo", block.getLocation(), type, null, block.getState(), 0);
|
Queue.queueBlockPlaceDelayed("#bamboo", block.getLocation(), type, null, block.getState(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (Config.getConfig(event.getBlock().getWorld()).SCULK_SPREAD && BlockGroup.SCULK.contains(type)) {
|
||||||
if(Config.getConfig(event.getBlock().getWorld()).SCULK_SPREAD && BlockGroup.SCULK.contains(type)) {
|
Block block = event.getBlock();
|
||||||
if(checkCacheData(block, type)) {
|
if (checkCacheData(block, type)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
queueBlockPlace("#sculk", block.getState(), block.getType(), block.getState(), type, -1, 0, blockstate.getBlockData().getAsString());
|
queueBlockPlace("#sculk_catalyst", block.getState(), block.getType(), block.getState(), type, -1, 0, blockstate.getBlockData().getAsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user