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,9 +113,11 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
try try
{ {
if (hotloader != null) {
J.a(() -> hotloader.check()); J.a(() -> hotloader.check());
getComposite().clean(); getComposite().clean();
} }
}
catch(Throwable e) catch(Throwable e)
{ {