log sculk

This commit is contained in:
Brokkonaut
2022-06-11 20:39:23 +02:00
parent 0ed501493e
commit 62a5be6c6b
3 changed files with 12 additions and 1 deletions

View File

@ -217,7 +217,7 @@ public class LogBlock extends JavaPlugin {
if (isLogging(Logging.BONEMEALSTRUCTUREGROW)) {
pm.registerEvents(new BlockFertilizeLogging(this), this);
}
if (isLogging(Logging.GRASSGROWTH) || isLogging(Logging.MYCELIUMSPREAD) || isLogging(Logging.VINEGROWTH) || isLogging(Logging.MUSHROOMSPREAD) || isLogging(Logging.BAMBOOGROWTH) || isLogging(Logging.DRIPSTONEGROWTH)) {
if (isLogging(Logging.GRASSGROWTH) || isLogging(Logging.MYCELIUMSPREAD) || isLogging(Logging.VINEGROWTH) || isLogging(Logging.MUSHROOMSPREAD) || isLogging(Logging.BAMBOOGROWTH) || isLogging(Logging.DRIPSTONEGROWTH) || isLogging(Logging.SCULKSPREAD)) {
pm.registerEvents(new BlockSpreadLogging(this), this);
}
if (isLogging(Logging.DRAGONEGGTELEPORT)) {

View File

@ -49,6 +49,7 @@ public enum Logging {
LECTERNBOOKCHANGE(true),
SCAFFOLDING(true),
OXIDIZATION,
SCULKSPREAD(true),
SHULKER_BOX_CONTENT,
PLAYER_COMMANDS,
COMMANDBLOCK_COMMANDS,

View File

@ -102,6 +102,16 @@ public class BlockSpreadLogging extends LoggingListener {
return;
}
break;
case SCULK:
case SCULK_VEIN:
case SCULK_CATALYST:
case SCULK_SENSOR:
case SCULK_SHRIEKER:
if (!isLogging(world, Logging.SCULKSPREAD)) {
return;
}
name = "SculkSpread";
break;
default:
return;
}