Fix unhandled exception

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-08-26 17:59:51 +02:00
parent 75964f87b4
commit b60b785dcd

View File

@ -1196,7 +1196,11 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
// Cannot load chunk (auto load is not enabled)
return;
}
chunk.addViewer(this);
try {
chunk.addViewer(this);
} catch (Exception e) {
MinecraftServer.getExceptionManager().handleException(e);
}
});
});
}