Fix NPE in FluidFlowLogging

Fixes #724
This commit is contained in:
Brokkonaut
2018-10-17 14:59:35 +02:00
parent 497e844486
commit be5ee9f792

View File

@ -39,6 +39,7 @@ public class FluidFlowLogging extends LoggingListener {
}
if (typeFrom == Material.SEAGRASS || typeFrom == Material.KELP_PLANT || typeFrom == Material.KELP) {
typeFrom = Material.WATER;
fromWaterlogged = true;
}
Block source = Config.logFluidFlowAsPlayerWhoTriggeredIt ? event.getBlock() : null;