Prevent NPE by not checking hotloader when null

This commit is contained in:
CocoTheOwner 2021-02-25 09:46:55 +01:00
parent 552a87462a
commit aafed9b1b7

View File

@ -113,8 +113,10 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
try
{
J.a(() -> hotloader.check());
getComposite().clean();
if (hotloader != null) {
J.a(() -> hotloader.check());
getComposite().clean();
}
}
catch(Throwable e)